fix: irqs are handled correctly with regs->int_no (and the keyboard handler works)
This commit is contained in:
@ -50,7 +50,7 @@ void register_interrupt_handler(int i, isr_t handler)
|
||||
void irq_handler(struct registers *regs)
|
||||
{
|
||||
if (regs->int_no != 0) {
|
||||
isr_t handler = interrupt_handlers[regs->int_no];
|
||||
isr_t handler = interrupt_handlers[regs->int_no - 32];
|
||||
handler(regs);
|
||||
}
|
||||
pic_send_eoi(regs->int_no);
|
||||
|
Reference in New Issue
Block a user