]> git.proxmox.com Git - grub2.git/commit
arm64/efi: Fix grub_efi_get_ram_base()
authorLeif Lindholm <leif.lindholm@linaro.org>
Thu, 21 Feb 2019 10:15:08 +0000 (10:15 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Mon, 25 Feb 2019 13:02:06 +0000 (14:02 +0100)
commit566b16a0dc23d72357d2d75b781d3c7895b8a234
tree85a11abfd4cd6c6390931fc660d05a41ca5bb48c
parentd3a3543a5666c1dd180ae6027948ca753dcffc18
arm64/efi: Fix grub_efi_get_ram_base()

grub_efi_get_ram_base() looks for the lowest available RAM address by
traversing the memory map, comparing lowest address found so far.
Due to a brain glitch, that "so far" was initialized to GRUB_UINT_MAX -
completely preventing boot on systems without RAM below 4GB.

Change the initial value to GRUB_EFI_MAX_USABLE_ADDRESS, as originally
intended.

Reported-by: Steve McIntyre <93sam@debian.org>
Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org>
Tested-by: Steve McIntyre <93sam@debian.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/efi/mm.c