mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +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
|
@ -42,7 +42,7 @@ PTYMultiplexer& PTYMultiplexer::the()
|
|||
return *s_the;
|
||||
}
|
||||
|
||||
PTYMultiplexer::PTYMultiplexer()
|
||||
UNMAP_AFTER_INIT PTYMultiplexer::PTYMultiplexer()
|
||||
: CharacterDevice(5, 2)
|
||||
{
|
||||
m_freelist.ensure_capacity(s_max_pty_pairs);
|
||||
|
@ -50,7 +50,7 @@ PTYMultiplexer::PTYMultiplexer()
|
|||
m_freelist.unchecked_append(i - 1);
|
||||
}
|
||||
|
||||
PTYMultiplexer::~PTYMultiplexer()
|
||||
UNMAP_AFTER_INIT PTYMultiplexer::~PTYMultiplexer()
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ void VirtualConsole::flush_vga_cursor()
|
|||
IO::out8(0x3d5, LSB(value));
|
||||
}
|
||||
|
||||
void VirtualConsole::initialize()
|
||||
UNMAP_AFTER_INIT void VirtualConsole::initialize()
|
||||
{
|
||||
s_vga_buffer = (u8*)0xc00b8000;
|
||||
s_active_console = -1;
|
||||
|
@ -63,7 +63,7 @@ void VirtualConsole::set_graphical(bool graphical)
|
|||
m_graphical = graphical;
|
||||
}
|
||||
|
||||
VirtualConsole::VirtualConsole(const unsigned index)
|
||||
UNMAP_AFTER_INIT VirtualConsole::VirtualConsole(const unsigned index)
|
||||
: TTY(4, index)
|
||||
, m_index(index)
|
||||
, m_terminal(*this)
|
||||
|
@ -76,7 +76,7 @@ VirtualConsole::VirtualConsole(const unsigned index)
|
|||
s_consoles[index] = this;
|
||||
}
|
||||
|
||||
VirtualConsole::~VirtualConsole()
|
||||
UNMAP_AFTER_INIT VirtualConsole::~VirtualConsole()
|
||||
{
|
||||
ASSERT_NOT_REACHED();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue