MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / MapLegacyIRQ

Function MapLegacyIRQ

Kernel/src/arch/x86_64/apic.cpp:144–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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(){

Callers 3

InstallFunction · 0.85
InstallFunction · 0.85
AllocateVectorMethod · 0.85

Calls 4

InfoFunction · 0.85
RedirectFunction · 0.85
get_atMethod · 0.80
get_lengthMethod · 0.45

Tested by

no test coverage detected