diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2015-07-24 12:38:27 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-07-27 11:08:41 +0100 |
commit | e38457c361b30c5a2379cc767877c3e5c2505dc6 (patch) | |
tree | 66b2d1ac7d059ad95a7557d4207ce237a6a701b5 /arch/arm64/kernel/insn.c | |
parent | e094d44568680d4e5e2722c4ad090ff0810719b9 (diff) | |
download | linux-stable-e38457c361b30c5a2379cc767877c3e5c2505dc6.tar.gz linux-stable-e38457c361b30c5a2379cc767877c3e5c2505dc6.tar.bz2 linux-stable-e38457c361b30c5a2379cc767877c3e5c2505dc6.zip |
arm64: efi: prefer AllocatePages() over efi_low_alloc() for vmlinux
When allocating memory for the kernel image, try the AllocatePages()
boot service to obtain memory at the preferred offset of
'dram_base + TEXT_OFFSET', and only revert to efi_low_alloc() if that
fails. This is the only way to allocate at the base of DRAM if DRAM
starts at 0x0, since efi_low_alloc() refuses to allocate at 0x0.
Tested-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/insn.c')
0 files changed, 0 insertions, 0 deletions