Minor refactor with headers

master
E. Almqvist 3 years ago
parent a9c897e75d
commit 5c88ed65a2
  1. 4
      kernel/idt.c
  2. 2
      kernel/idt.h

@ -49,10 +49,6 @@ void idt_init() {
idt_set_desc(idx, isr_stub_table[idx], 0x8e); idt_set_desc(idx, isr_stub_table[idx], 0x8e);
/*
outb_w(PIC1, 0xfd);
outb_w(PIC2, 0xfd);
*/
__asm__ __volatile__("lidt %0" : : "m"(IDTR)); __asm__ __volatile__("lidt %0" : : "m"(IDTR));
__asm__ __volatile__("sti"); __asm__ __volatile__("sti");
} }

@ -1,5 +1,7 @@
#include "../lib/types.h" #include "../lib/types.h"
#include "pic.h" #include "pic.h"
#include "../drivers/vga.h"
#include "../lib/conv.h"
#define IDT_MAX_DESCS 256 #define IDT_MAX_DESCS 256
#define EXC_COLOR 0x08 #define EXC_COLOR 0x08

Loading…
Cancel
Save