1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:28: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

@ -51,14 +51,14 @@ namespace Kernel {
static AK::Singleton<PS2MouseDevice> s_the;
PS2MouseDevice::PS2MouseDevice()
UNMAP_AFTER_INIT PS2MouseDevice::PS2MouseDevice()
: IRQHandler(IRQ_MOUSE)
, CharacterDevice(10, 1)
, m_controller(I8042Controller::the())
{
}
PS2MouseDevice::~PS2MouseDevice()
UNMAP_AFTER_INIT PS2MouseDevice::~PS2MouseDevice()
{
}
@ -222,7 +222,7 @@ void PS2MouseDevice::set_sample_rate(u8 rate)
send_command(PS2MOUSE_SET_SAMPLE_RATE, rate);
}
bool PS2MouseDevice::initialize()
UNMAP_AFTER_INIT bool PS2MouseDevice::initialize()
{
if (!m_controller.reset_device(I8042Controller::Device::Mouse)) {
dbgln("PS2MouseDevice: I8042 controller failed to reset device");