mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
Kernel: Slap UNMAP_AFTER_INIT on a whole bunch of functions
There's no real system here, I just added it to various functions that I don't believe we ever want to call after initialization has finished. With these changes, we're able to unmap 60 KiB of kernel text after init. :^)
This commit is contained in:
parent
32e93c8808
commit
fdf03852c9
22 changed files with 69 additions and 68 deletions
|
@ -168,7 +168,7 @@ void Scheduler::queue_runnable_thread(Thread& thread)
|
|||
g_ready_queues_mask |= (1u << priority);
|
||||
}
|
||||
|
||||
void Scheduler::start()
|
||||
UNMAP_AFTER_INIT void Scheduler::start()
|
||||
{
|
||||
ASSERT_INTERRUPTS_DISABLED();
|
||||
|
||||
|
@ -488,7 +488,7 @@ Process* Scheduler::colonel()
|
|||
return s_colonel_process;
|
||||
}
|
||||
|
||||
void Scheduler::initialize()
|
||||
UNMAP_AFTER_INIT void Scheduler::initialize()
|
||||
{
|
||||
ASSERT(&Processor::current() != nullptr); // sanity check
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue