mirror of
https://github.com/limine-bootloader/limine
synced 2024-11-23 17:09:40 +03:00
mm/efi: Fix issue where in-use bootloader memory may be erroneously allocated
This commit is contained in:
parent
8cb61a95d2
commit
1af09d0749
@ -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