From 690403fc51ecb51689cb72f224fccc0d301b7f7d Mon Sep 17 00:00:00 2001 From: Miguel Date: Tue, 21 Aug 2018 01:20:42 +0200 Subject: cleanup timer stuff and move to asm. --- kernel/interrupts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kernel/interrupts.c') diff --git a/kernel/interrupts.c b/kernel/interrupts.c index 46883d6..96446f3 100644 --- a/kernel/interrupts.c +++ b/kernel/interrupts.c @@ -3,6 +3,7 @@ #include "lib/logger/log.h" // logger facilities #include "asm/asm.h" +#include "asm/pit.h" #include "driver/mouse.h" #include "interrupts.h" #include "asm/x86.h" @@ -152,7 +153,7 @@ void int_init(uint16_t sel) // remember that we shifted all interrupts with the pic by 32 // install PIT interrupt handler (irq 0 => 32) - int_install_ir(32, 0b10001110, 0x08,&int_clock_handler); + int_install_ir(32, 0b10001110, 0x08,&pit_interrupt_handler); // install keyboard interrupt handler (irq 1 => 33) int_install_ir(33, 0b10001110, 0x08,&int_kb_handler); -- cgit v1.2.3