diff --git a/kernel/idt.c b/kernel/idt.c index 77b140a..2195e3c 100644 --- a/kernel/idt.c +++ b/kernel/idt.c @@ -20,14 +20,14 @@ __attribute__((aligned(16))) static idt_entry IDT[IDT_MAX_DESCS]; static idtr IDTR; -void interupt_handler(uint interupt) { - pic_send_eoi(interupt); // ack int - +void interupt_handler(uint8 interupt) { char* buf; set_cursor_pos(0, 0); print("[int] ", EXC_COLOR); buf = itoa(interupt, buf, 10); print(buf, 0x0c); + + pic_send_eoi(interupt); // ack int } void idt_set_desc(uint8 idx, void* isr, uint8 flags) { diff --git a/kernel/idt.h b/kernel/idt.h index c1812c7..1a26fd6 100644 --- a/kernel/idt.h +++ b/kernel/idt.h @@ -7,7 +7,7 @@ #define EXC_COLOR 0x08 //__attribute__((noreturn)) -void interupt_handler(uint); +void interupt_handler(uint8); void idt_set_desc(uint8, void*, uint8); void idt_init();