1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:17:35 +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

@ -45,7 +45,7 @@ enum DeliveryMode {
External = 7
};
IOAPIC::IOAPIC(PhysicalAddress address, u32 gsi_base)
UNMAP_AFTER_INIT IOAPIC::IOAPIC(PhysicalAddress address, u32 gsi_base)
: m_address(address)
, m_regs(map_typed_writable<ioapic_mmio_regs>(m_address))
, m_gsi_base(gsi_base)
@ -60,7 +60,7 @@ IOAPIC::IOAPIC(PhysicalAddress address, u32 gsi_base)
mask_all_redirection_entries();
}
void IOAPIC::initialize()
UNMAP_AFTER_INIT void IOAPIC::initialize()
{
}

View file

@ -87,7 +87,7 @@ void PIC::disable(const GenericInterruptHandler& handler)
m_cached_irq_mask |= 1 << irq;
}
PIC::PIC()
UNMAP_AFTER_INIT PIC::PIC()
{
initialize();
}
@ -203,7 +203,7 @@ void PIC::remap(u8 offset)
enable_vector(2);
}
void PIC::initialize()
UNMAP_AFTER_INIT void PIC::initialize()
{
/* ICW1 (edge triggered mode, cascading controllers, expect ICW4) */
IO::out8(PIC0_CTL, ICW1_INIT | ICW1_ICW4);

View file

@ -34,7 +34,7 @@
namespace Kernel {
void SharedIRQHandler::initialize(u8 interrupt_number)
UNMAP_AFTER_INIT void SharedIRQHandler::initialize(u8 interrupt_number)
{
new SharedIRQHandler(interrupt_number);
}

View file

@ -29,7 +29,7 @@
namespace Kernel {
void SpuriousInterruptHandler::initialize(u8 interrupt_number)
UNMAP_AFTER_INIT void SpuriousInterruptHandler::initialize(u8 interrupt_number)
{
new SpuriousInterruptHandler(interrupt_number);
}