mm/efi: Fix issue where in-use bootloader memory may be erroneously allocated
This commit is contained in:
parent
b9cde22b65
commit
5526de2dd3
@ -213,8 +213,6 @@ retry:
|
||||
|
||||
asm volatile ("cli" ::: "memory");
|
||||
|
||||
pmm_reclaim_uefi_mem();
|
||||
|
||||
// Go through new EFI memmap and free up bootloader entries
|
||||
size_t entry_count = efi_mmap_size / efi_desc_size;
|
||||
|
||||
|
@ -226,6 +226,9 @@ del_mm1:
|
||||
}
|
||||
|
||||
struct e820_entry_t *get_memmap(size_t *entries) {
|
||||
#if uefi == 1
|
||||
pmm_reclaim_uefi_mem();
|
||||
#endif
|
||||
sanitise_entries(memmap, &memmap_entries, true);
|
||||
|
||||
*entries = memmap_entries;
|
||||
|
Loading…
Reference in New Issue
Block a user