efi_loader: consider no-map property of reserved memory
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 27 Aug 2020 10:52:20 +0000 (12:52 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 6 Oct 2020 05:43:56 +0000 (07:43 +0200)
commit4cbb2930bd8c67f40f848528941930cf4c2a1841
tree30f4dc7ae390d84c71ba9e0d62524ce34df5791b
parent4b71f6dc4e2a6d98f24120dfc2f88d37c37d35e8
efi_loader: consider no-map property of reserved memory

The device tree may contain a /reserved-memory node. The no-map property
of the sub-nodes signals if the memory may be accessed by the UEFI payload
or not.

In the EBBR specification (https://github.com/arm-software/ebbr) the
modeling of the reserved memory has been clarified.

If a reserved memory node in the device tree has the no-map property map,
create a EfiReservedMemoryType memory map entry else use
EfiBootServicesData.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/bootefi.c