diff options
author | Jean-Baptiste Boric <jblbeurope@gmail.com> | 2021-01-20 17:49:55 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-22 22:17:39 +0100 |
commit | 3cbe8054864a3496dc5d097a1902b3406614113f (patch) | |
tree | 27cd5a6bd135140be58e2baeec2de79092b963a1 /Kernel/Heap/kmalloc.h | |
parent | 5cd1217b6e07a913d2f9c1938fbbe5e0a1bcc8f5 (diff) | |
download | serenity-3cbe8054864a3496dc5d097a1902b3406614113f.zip |
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.
Diffstat (limited to 'Kernel/Heap/kmalloc.h')
-rw-r--r-- | Kernel/Heap/kmalloc.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Kernel/Heap/kmalloc.h b/Kernel/Heap/kmalloc.h index ced23e7146..3cd093844a 100644 --- a/Kernel/Heap/kmalloc.h +++ b/Kernel/Heap/kmalloc.h @@ -82,6 +82,3 @@ inline void kfree_aligned(void* ptr) } void kmalloc_enable_expand(); - -extern u8* const kmalloc_start; -extern u8* const kmalloc_end; |