mirror of
https://github.com/memtest86plus/memtest86plus.git
synced 2025-02-16 13:34:45 -06:00
Translate non-usable EFI memory regions to E820_RESERVED, not E820_NONE.
This is more correct. Using E820_NONE may have been confusing the code in pmem.c that sanitises the memory map.
This commit is contained in:
parent
807c4153c1
commit
f4a413cf6d
@ -487,7 +487,7 @@ static void set_e820_map(boot_params_t *params)
|
||||
for (size_t i = 0; i < num_descs && num_entries < E820_MAP_SIZE; i++) {
|
||||
efi_memory_desc_t *mem_desc = get_memory_desc(mem_map_addr, mem_desc_size, i);
|
||||
|
||||
e820_type_t e820_type = E820_NONE;
|
||||
e820_type_t e820_type = E820_RESERVED;
|
||||
switch (mem_desc->type) {
|
||||
case EFI_ACPI_RECLAIM_MEMORY:
|
||||
e820_type = E820_ACPI;
|
||||
|
Loading…
Reference in New Issue
Block a user