mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:07: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:
parent
c1bfb8cb0e
commit
7a4fb5deef
2 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue