réplica de
https://github.com/Arnau478/quark.git
synced 2024-05-19 20:36:31 +02:00
Arnau Camprubí
109b5b17a1
The debug_printf() function works just as any printf-like function. It prints to the serial port using ANSI coloring. Also, debug_vprintf() was implemented, which takes arguments as a va_list instead of as variadic arguments.
14 líneas
302 B
C
14 líneas
302 B
C
#include "timer.h"
|
|
#include "../arch/i686/isr.h"
|
|
#include "../lib/stdio.h"
|
|
#include "../lib/debug.h"
|
|
|
|
static void timer_handler(registers *regs){
|
|
//printf("TICK\n");
|
|
}
|
|
|
|
void timer_initialize(){
|
|
debug_printf("[TIMER] Initializing PIT\n");
|
|
i686_isr_register_handler(IRQ(0), timer_handler);
|
|
}
|