mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 01:15:07 +00:00
Kernel: Move end_of_kernel_image after the .ksyms section
Without this we won't be able to detect whether .ksyms overlaps the end of the page table we set up for the kernel image.
This commit is contained in:
parent
acf8f2a2a3
commit
cbdb488578
5 changed files with 38 additions and 5 deletions
|
@ -273,7 +273,10 @@ void init_stage2(void*)
|
|||
MM.protect_readonly_after_init_memory();
|
||||
|
||||
// NOTE: Everything marked UNMAP_AFTER_INIT becomes inaccessible after this point.
|
||||
MM.unmap_memory_after_init();
|
||||
MM.unmap_text_after_init();
|
||||
|
||||
// NOTE: Everything in the .ksyms section becomes inaccessible after this point.
|
||||
MM.unmap_ksyms_after_init();
|
||||
|
||||
int error;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue