Properly unmasks master PIC for IRQs 8 and up
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 17 Jun 2009 22:07:14 +0000 (15:07 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 17 Jun 2009 22:07:14 +0000 (15:07 -0700)
kern/src/apic.c

index 90de4ec..dd17656 100644 (file)
@@ -50,7 +50,7 @@ void pic_unmask_irq(uint8_t irq)
 {
        if (irq > 7) {
                outb(PIC2_DATA, inb(PIC2_DATA) & ~(1 << (irq - 8)));
-               outb(PIC1_DATA, inb(PIC1_DATA) & 0xfd); // make sure irq2 is unmasked
+               outb(PIC1_DATA, inb(PIC1_DATA) & 0xfb); // make sure irq2 is unmasked
        } else
                outb(PIC1_DATA, inb(PIC1_DATA) & ~(1 << irq));
 }