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>
This commit is contained in:
parent
73d95c24a5
commit
c0a8a95263
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user