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 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) {

@ -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();

Loading…
Cancel
Save