| 142 | } |
| 143 | |
| 144 | void MapLegacyIRQ(uint8_t irq){ |
| 145 | if(debugLevelInterrupts >= DebugLevelVerbose){ |
| 146 | Log::Info("[APIC] Mapping Legacy IRQ, IRQ: %d", irq); |
| 147 | } |
| 148 | for(unsigned i = 0; i < ACPI::isos->get_length(); i++){ |
| 149 | apic_iso_t* iso = ACPI::isos->get_at(i); |
| 150 | if(iso->irqSource == irq) return; // We should have already redirected this IRQ |
| 151 | } |
| 152 | Redirect(irq, irq + 0x20, ICR_MESSAGE_TYPE_LOW_PRIORITY); |
| 153 | } |
| 154 | } |
| 155 | |
| 156 | int Initialize(){ |
no test coverage detected