fixes issue with exceptions (im dumb)
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
#endif
|
||||
#include <kernel/x86/idt.h>
|
||||
#include <kernel/x86/pic.h>
|
||||
#include <kernel/x86/io.h>
|
||||
|
||||
__attribute__((aligned(0x10)))
|
||||
static idt_entry_t idt[256];
|
||||
@ -58,8 +59,8 @@ void idt_init(void)
|
||||
__asm__ volatile("lidt %0" : : "m"(idtr)); // load the new IDT
|
||||
|
||||
PIC_remap(0x20, 0x28);
|
||||
//IRQ_set_mask(0xfd); // unmask IRQ1
|
||||
pic_disable(); //TODO: this is ending a timer interrupt even though its masked off..
|
||||
pic_disable(); // mask everything
|
||||
IRQ_clear_mask(1);
|
||||
|
||||
__asm__ volatile("sti"); // set the interrupt flag
|
||||
#ifdef __TESTING__
|
||||
|
Reference in New Issue
Block a user