11 lines
455 B
C++
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);
|
|
}
|
|
}
|