diff options
author | Heinrich Schuchardt | 2019-07-27 19:16:32 +0200 |
---|---|---|
committer | Heinrich Schuchardt | 2019-07-30 21:36:22 +0200 |
commit | c0a8a952634ccc5cc437a21eba69c186e1f229a8 (patch) | |
tree | d5fcb2819ab1730d4bc200450e327133e0e840e0 /lib/efi_selftest | |
parent | 73d95c24a5fe3d25346aed556ecd6c1cfea62238 (diff) |
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>
Diffstat (limited to 'lib/efi_selftest')
-rw-r--r-- | lib/efi_selftest/efi_selftest_set_virtual_address_map.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/efi_selftest/efi_selftest_set_virtual_address_map.c b/lib/efi_selftest/efi_selftest_set_virtual_address_map.c index 6ee7bbeb01e..3ffb61b7e8f 100644 --- a/lib/efi_selftest/efi_selftest_set_virtual_address_map.c +++ b/lib/efi_selftest/efi_selftest_set_virtual_address_map.c @@ -123,6 +123,7 @@ static int setup(const efi_handle_t handle, case EFI_LOADER_DATA: case EFI_BOOT_SERVICES_CODE: case EFI_BOOT_SERVICES_DATA: + case EFI_CONVENTIONAL_MEMORY: continue; } memcpy(pos1, pos2, desc_size); |