pmm: Use fixed value of 1024 for recl entries count
This commit is contained in:
parent
cb14f44eb3
commit
66268f7d7f
@ -430,14 +430,7 @@ void init_memmap(void) {
|
|||||||
|
|
||||||
sanitise_entries(memmap, &memmap_entries, false);
|
sanitise_entries(memmap, &memmap_entries, false);
|
||||||
|
|
||||||
size_t recl_count = 0;
|
recl = ext_mem_alloc(1024 * sizeof(struct memmap_entry));
|
||||||
for (size_t i = 0; i < memmap_entries; i++) {
|
|
||||||
if (memmap[i].type == MEMMAP_EFI_RECLAIMABLE) {
|
|
||||||
recl_count++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
recl = ext_mem_alloc(recl_count * sizeof(struct memmap_entry));
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user