1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:27:42 +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:
Andreas Kling 2021-02-19 18:41:50 +01:00
parent 32e93c8808
commit fdf03852c9
22 changed files with 69 additions and 68 deletions

View file

@ -36,7 +36,7 @@
static AK::Singleton<Console> s_the;
static Kernel::SpinLock g_console_lock;
void Console::initialize()
UNMAP_AFTER_INIT void Console::initialize()
{
s_the.ensure_instance();
}
@ -51,7 +51,7 @@ bool Console::is_initialized()
return s_the.is_initialized();
}
Console::Console()
UNMAP_AFTER_INIT Console::Console()
: CharacterDevice(5, 1)
{
}