irq: enable LAPIC timer

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
Michael Shaw 2024-06-17 17:43:59 -04:00
commit f03a30e07e
6 changed files with 29 additions and 5 deletions

View file

@ -89,7 +89,6 @@ int irq_map(uint8_t irq, void *func)
irq_mapped[irq] = true;
irq_handlers[irq] = func;
pic_mask(irq, 0);
return 0;
}
@ -99,7 +98,6 @@ void irq_unmap(uint8_t irq)
irq_mapped[irq] = false;
irq_handlers[irq] = NULL;
idt_insert(irq + 0x20, GATE_INTR, 0, GDT_SEGMENT_CODE_RING0, NULL);
pic_mask(irq, 1);
}
int irq_highest_free()