IOAPIC not working...

master
E. Almqvist 3 years ago
parent 9d118bd989
commit 313f8f12f5
  1. 6
      kernel/idt.c
  2. 2
      kernel/idt.h

@ -20,14 +20,14 @@ __attribute__((aligned(16)))
static idt_entry IDT[IDT_MAX_DESCS]; static idt_entry IDT[IDT_MAX_DESCS];
static idtr IDTR; static idtr IDTR;
void interupt_handler(uint interupt) { void interupt_handler(uint8 interupt) {
pic_send_eoi(interupt); // ack int
char* buf; char* buf;
set_cursor_pos(0, 0); set_cursor_pos(0, 0);
print("[int] ", EXC_COLOR); print("[int] ", EXC_COLOR);
buf = itoa(interupt, buf, 10); buf = itoa(interupt, buf, 10);
print(buf, 0x0c); print(buf, 0x0c);
pic_send_eoi(interupt); // ack int
} }
void idt_set_desc(uint8 idx, void* isr, uint8 flags) { void idt_set_desc(uint8 idx, void* isr, uint8 flags) {

@ -7,7 +7,7 @@
#define EXC_COLOR 0x08 #define EXC_COLOR 0x08
//__attribute__((noreturn)) //__attribute__((noreturn))
void interupt_handler(uint); void interupt_handler(uint8);
void idt_set_desc(uint8, void*, uint8); void idt_set_desc(uint8, void*, uint8);
void idt_init(); void idt_init();

Loading…
Cancel
Save