1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

Kernel: Slap UNMAP_AFTER_INIT on a bunch more functions

We're now able to unmap 100 KiB of kernel text after init. :^)
This commit is contained in:
Andreas Kling 2021-02-19 21:29:46 +01:00
parent e920c74cae
commit 2b2828ae52
36 changed files with 105 additions and 105 deletions

View file

@ -32,7 +32,7 @@ namespace Kernel {
static char s_cmd_line[1024];
static CommandLine* s_the;
void CommandLine::early_initialize(const char* cmd_line)
UNMAP_AFTER_INIT void CommandLine::early_initialize(const char* cmd_line)
{
if (!cmd_line)
return;
@ -49,13 +49,13 @@ const CommandLine& kernel_command_line()
return *s_the;
}
void CommandLine::initialize()
UNMAP_AFTER_INIT void CommandLine::initialize()
{
ASSERT(!s_the);
s_the = new CommandLine(s_cmd_line);
}
CommandLine::CommandLine(const String& string)
UNMAP_AFTER_INIT CommandLine::CommandLine(const String& string)
: m_string(string)
{
s_the = this;