1

Initial commit

This commit is contained in:
2023-02-26 21:12:51 +01:00
commit d2ec37332f
69 changed files with 58831 additions and 0 deletions

10
code/apic_allow.cpp Normal file
View File

@ -0,0 +1,10 @@
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);
}
}