]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_selftest: fix SetVirtualAddressMap unit test
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 27 Jul 2019 17:16:32 +0000 (19:16 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 30 Jul 2019 19:36:22 +0000 (21:36 +0200)
commitc0a8a952634ccc5cc437a21eba69c186e1f229a8
treed5fcb2819ab1730d4bc200450e327133e0e840e0
parent73d95c24a5fe3d25346aed556ecd6c1cfea62238
efi_selftest: fix SetVirtualAddressMap unit test

We read the address map before assigning the memory for the pages that will
be mapped to virtual addresses. So these pages will overlap with the entry
for EFI_CONVENTIONAL_MEMORY. We have to ensure that every page is described
at most once in the map.

Remove EFI_CONVENTIONAL_MEMORY from the map that we pass to
SetVirtualAddressMap().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_selftest/efi_selftest_set_virtual_address_map.c