sets up the PIC
This commit is contained in:
@ -37,6 +37,7 @@ void idt_init(void)
|
||||
vectors[vector] = true;
|
||||
}
|
||||
|
||||
// The "m" indicates actual data, not a pointer
|
||||
__asm__ volatile("lidt %0" : : "m"(idtr)); // load the new IDT
|
||||
__asm__ volatile("sti"); // set the interrupt flag
|
||||
}
|
||||
|
Reference in New Issue
Block a user