]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: fix memory type for memory reservation block
authorMark Kettenis <kettenis@openbsd.org>
Sun, 14 Mar 2021 19:04:24 +0000 (20:04 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 16 Mar 2021 08:37:04 +0000 (09:37 +0100)
commit2580fa34f8f64ccd81ddad3aa580c60004678616
treedde43e7e70f505de70640c52b8017bd2a750e4b0
parenta6bb4e7920faa695dd3298512a865d08dd1af2f5
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 e3f00d6da234
("efi_loader: consider no-map property of reserved memory").

Fixes: e3f00d6da234 ("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>
lib/efi_loader/efi_dt_fixup.c