diff options
Diffstat (limited to 'src/kernel/interrupts/irq.c')
-rw-r--r-- | src/kernel/interrupts/irq.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/kernel/interrupts/irq.c b/src/kernel/interrupts/irq.c index a0a396d..2fae9de 100644 --- a/src/kernel/interrupts/irq.c +++ b/src/kernel/interrupts/irq.c @@ -102,15 +102,13 @@ void irq_handler(struct regs *r) // Execute custom handler if exists handler = irq_routines[r->int_no - 32]; - if (handler) { + if (handler) handler(r); - } // Send end of interrupt to second (slave) IRQ controller - if (r->int_no >= 40) { + if (r->int_no >= 40) outb(0xA0, 0x20); - } // Send end of interrupt to master interrupt controller outb(0x20, 0x20); -} +}
\ No newline at end of file |