1
Files
interrupt-handling-using-th…/code/apic_allow.cpp
2023-02-26 21:12:51 +01:00

11 lines
455 B
C++

void Apic::allow(InterruptRequest interruptRequest) {
IoApic::IrqOverride *override = IoApic::getOverride(interruptRequest);
if (override == nullptr) {
// If no override is specified, the IRQ is identity mapped to the GSI
IoApic::allow(static_cast<GlobalSystemInterrupt>(interruptRequest));
} else {
// If an override is specified, lookup which GSI the IRQ is mapped to
IoApic::allow(override->target);
}
}