From 313f8f12f5e98b1dfedcfeae9cc95a7599db3789 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sat, 21 May 2022 23:34:05 +0200 Subject: [PATCH] IOAPIC not working... --- kernel/idt.c | 6 +++--- kernel/idt.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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();