
The sandbox uses two different address rooms - one used internally by the sandbox and one usable for EFI.
In efi_get_memory_map() we have to map the returned physical start addresses to EFI usable addresses.
Add a unit test.
Enable building the sandbox with CONFIG_EFI_SELFTEST=y.
Heinrich Schuchardt (3): efi_loader: fix GetMemoryMap() efi_selftest: add test for memory allocation efi_selftest: building sandbox with EFI_SELFTEST
configs/sandbox_defconfig | 1 - lib/efi_loader/efi_memory.c | 5 + lib/efi_selftest/Kconfig | 2 +- lib/efi_selftest/Makefile | 1 + lib/efi_selftest/efi_selftest_memory.c | 163 +++++++++++++++++++++++++ 5 files changed, 170 insertions(+), 2 deletions(-) create mode 100644 lib/efi_selftest/efi_selftest_memory.c