mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +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:
@@ -48,7 +48,7 @@ namespace Kernel {
|
||||
SpinLock<u8> Thread::g_tid_map_lock;
|
||||
READONLY_AFTER_INIT HashMap<ThreadID, Thread*>* Thread::g_tid_map;
|
||||
|
||||
void Thread::initialize()
|
||||
UNMAP_AFTER_INIT void Thread::initialize()
|
||||
{
|
||||
g_tid_map = new HashMap<ThreadID, Thread*>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user