1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +00:00

Kernel: Use ksyms in-place instead of duplicating them into eternal heap

We can leave the .ksyms section mapped-but-read-only and then have the
symbols index simply point into it.

Note that we manually insert null-terminators into the symbols section
while parsing it.

This gets rid of ~950 KiB of kmalloc_eternal() at startup. :^)
This commit is contained in:
Andreas Kling 2021-12-17 09:52:06 +01:00
parent abf2204402
commit 1f2d0d0ad4
4 changed files with 11 additions and 13 deletions

View file

@ -160,7 +160,7 @@ public:
void protect_readonly_after_init_memory();
void unmap_text_after_init();
void unmap_ksyms_after_init();
void protect_ksyms_after_init();
static void enter_process_address_space(Process&);
static void enter_address_space(AddressSpace&);