Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 997 of file pic.c.
{ I8259_OCW3 Ocw3; I8259_OCW2 Ocw2; I8259_ISR Isr; /* Request the ISR */ Ocw3.Bits = 0; Ocw3.Sbo = 1; /* This encodes an OCW3 vs. an OCW2 */ Ocw3.ReadRequest = ReadIsr; __outbyte(PIC2_CONTROL_PORT, Ocw3.Bits); /* Read the ISR */ Isr.Bits = __inbyte(PIC2_CONTROL_PORT); /* Is IRQ15 really active (this is IR7) */ if (Isr.Irq7 == FALSE) { /* It isn't, so we have to EOI IRQ2 because this was cascaded */ Ocw2.Bits = 0; Ocw2.EoiMode = SpecificEoi; __outbyte(PIC1_CONTROL_PORT, Ocw2.Bits | 2); /* And now fail since this was spurious */ return FALSE; } /* Do normal interrupt dismiss */ return _HalpDismissIrqLevel(Irql, Irq, OldIrql); }