quark/src/kernel/drivers/timer.c

14 líneas
302 B
C
Original Vista normal Històric

2022-06-18 19:19:03 +02:00
#include "timer.h"
#include "../arch/i686/isr.h"
2022-06-19 19:17:15 +02:00
#include "../lib/stdio.h"
#include "../lib/debug.h"
2022-06-18 19:19:03 +02:00
static void timer_handler(registers *regs){
2022-06-19 19:08:16 +02:00
//printf("TICK\n");
2022-06-18 19:19:03 +02:00
}
void timer_initialize(){
debug_printf("[TIMER] Initializing PIT\n");
2022-06-18 19:19:03 +02:00
i686_isr_register_handler(IRQ(0), timer_handler);
}