]> git.ipfire.org Git - thirdparty/grub.git/commit
efi: Add grub_efi_get_ram_base() function for arm64
authorLeif Lindholm <leif.lindholm@linaro.org>
Mon, 9 Jul 2018 17:33:01 +0000 (18:33 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 25 Jul 2018 12:18:11 +0000 (14:18 +0200)
commitbad144c60f664a83f5a7d3a014927bffaa2abbf1
treea6b738d8316b1c5c5c9fb8c1dc46adc19ffd22f5
parent8ec18d1a4c26129c0a018ee7a61739a929ee1a25
efi: Add grub_efi_get_ram_base() function for arm64

Since ARM platforms do not have a common memory map, add a helper
function that finds the lowest address region with the EFI_MEMORY_WB
attribute set in the UEFI memory map.

Required for the arm64 efi linux loader to restrict the initrd
location to where it will be accessible by the kernel at runtime.

Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/efi/mm.c
include/grub/efi/efi.h