mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:35:07 +00:00
Kernel: Make MemoryManager::protect_ksyms_after_init UNMAP_AFTER_INIT
The function to protect ksyms after initialization, is only used during boot of the system, so it can be UNMAP_AFTER_INIT as well. This requires we switch the order of the init sequence, so we now call `MM.protect_ksyms_after_init()` before `MM.unmap_text_after_init()`.
This commit is contained in:
parent
e88e4967d1
commit
1c950773fb
2 changed files with 4 additions and 4 deletions
|
@ -149,7 +149,7 @@ void MemoryManager::unmap_text_after_init()
|
|||
dmesgln("Unmapped {} KiB of kernel text after init! :^)", (end - start) / KiB);
|
||||
}
|
||||
|
||||
void MemoryManager::protect_ksyms_after_init()
|
||||
UNMAP_AFTER_INIT void MemoryManager::protect_ksyms_after_init()
|
||||
{
|
||||
SpinlockLocker mm_lock(s_mm_lock);
|
||||
SpinlockLocker page_lock(kernel_page_directory().get_lock());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue