]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: create memory reservations in ACPI case
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 16 Nov 2023 09:29:28 +0000 (10:29 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 5 Dec 2023 00:38:56 +0000 (01:38 +0100)
commit1be415b21b2da2f7979bdbccf7cf01103883b5de
tree5360500504d86be3e402cb905357d91f233aebb7
parent8c06b27eec8c3e5c7316a0525b596f26e001b0f3
efi_loader: create memory reservations in ACPI case

ACPI tables cannot convey memory reservations for ARM and RISC-V.
x86 uses the BIOS E820 table for this purpose. We cannot simply ignore the
device-tree when booting via ACPI. We have to assign EfiReservedMemory
according to the prior stage device-tree ($fdtaddr) or as fallback the
control device-tree ($fdtcontroladdr).

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/bootefi.c
lib/efi_loader/Makefile