mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-24 06:46:49 +03:00
limine: Specify that memory between 0 and 0x1000 is never to be marked usable
This commit is contained in:
parent
eaeeb59be9
commit
cd1107abe2
@ -657,7 +657,8 @@ struct limine_memmap_entry {
|
||||
};
|
||||
```
|
||||
|
||||
Note: The kernel and modules loaded are not marked as usable memory.
|
||||
Note: Memory between 0 and 0x1000 is never marked as usable memory.
|
||||
The kernel and modules loaded are not marked as usable memory.
|
||||
They are marked as Kernel/Modules. The entries are guaranteed to be sorted by
|
||||
base address, lowest to highest. Usable and bootloader reclaimable entries
|
||||
are guaranteed to be 4096 byte aligned for both base and length. Usable and
|
||||
|
@ -251,6 +251,9 @@ struct e820_entry_t *get_memmap(size_t *entries) {
|
||||
#if uefi == 1
|
||||
pmm_reclaim_uefi_mem(memmap, &memmap_entries);
|
||||
#endif
|
||||
|
||||
memmap_alloc_range(0, 0x1000, MEMMAP_RESERVED, MEMMAP_USABLE, false, false, false);
|
||||
|
||||
sanitise_entries(memmap, &memmap_entries, true);
|
||||
|
||||
*entries = memmap_entries;
|
||||
|
Loading…
Reference in New Issue
Block a user