1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:27:45 +00:00

Kernel: Don't remap IOAPIC registers every time we try to read/write

Remapping these registers every time we try to read from or write to
them causes a lot of SMP broadcasts and a lot of other overhead.
This improves boot time noticeably.
This commit is contained in:
Tom 2020-10-26 19:44:10 -06:00 committed by Andreas Kling
parent c1bfb8cb0e
commit 7a4fb5deef
2 changed files with 9 additions and 9 deletions

View file

@ -27,6 +27,7 @@
#pragma once
#include <Kernel/Interrupts/IRQController.h>
#include <Kernel/VM/TypedMapping.h>
namespace Kernel {
struct [[gnu::packed]] ioapic_mmio_regs
@ -98,6 +99,7 @@ private:
void isa_identity_map(int index);
PhysicalAddress m_address;
mutable TypedMapping<ioapic_mmio_regs> m_regs;
u32 m_gsi_base;
u8 m_id;
u8 m_version;