aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@openbsd.org>2021-03-14 20:04:24 +0100
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-03-16 09:37:04 +0100
commit9ff9f4b4268946f3b73d9759766ccfcc599da004 (patch)
treedde43e7e70f505de70640c52b8017bd2a750e4b0 /lib
parent8b5dea33584261cc5d600614970d1cbed6d99f91 (diff)
downloadu-boot-9ff9f4b4268946f3b73d9759766ccfcc599da004.zip
u-boot-9ff9f4b4268946f3b73d9759766ccfcc599da004.tar.gz
u-boot-9ff9f4b4268946f3b73d9759766ccfcc599da004.tar.bz2
efi_loader: fix memory type for memory reservation block
The (yet unreleased version of the) devicetree specification clearly states that: As with the /reserved-memory node, when booting via UEFI entries in the Memory Reservation Block must also be listed in the system memory map obtained via the GetMemoryMap() toi protect against allocations by UEFI applications. The memory reservation block entries should be listed with type EfiReservedMemoryType. This restores the behaviour that was changed by commit 4cbb2930bd8c ("efi_loader: consider no-map property of reserved memory"). Fixes: 4cbb2930bd8c ("efi_loader: consider no-map property of reserved memory") Signed-off-by: Mark Kettenis <kettenis@openbsd.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_dt_fixup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_dt_fixup.c b/lib/efi_loader/efi_dt_fixup.c
index a4529ee..b6fe5d2 100644
--- a/lib/efi_loader/efi_dt_fixup.c
+++ b/lib/efi_loader/efi_dt_fixup.c
@@ -61,7 +61,7 @@ void efi_carve_out_dt_rsv(void *fdt)
for (i = 0; i < nr_rsv; i++) {
if (fdt_get_mem_rsv(fdt, i, &addr, &size) != 0)
continue;
- efi_reserve_memory(addr, size, false);
+ efi_reserve_memory(addr, size, true);
}
/* process reserved-memory */