mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
Kernel: Move kmalloc heaps and super pages inside .bss segment
The kernel ignored the first 8 MiB of RAM while parsing the memory map because the kmalloc heaps and the super physical pages lived here. Move all that stuff inside the .bss segment so that those memory regions are accounted for, otherwise we risk overwriting boot modules placed next to the kernel.
This commit is contained in:
parent
5cd1217b6e
commit
3cbe805486
4 changed files with 45 additions and 44 deletions
|
@ -82,6 +82,3 @@ inline void kfree_aligned(void* ptr)
|
|||
}
|
||||
|
||||
void kmalloc_enable_expand();
|
||||
|
||||
extern u8* const kmalloc_start;
|
||||
extern u8* const kmalloc_end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue