sets up the PIC

This commit is contained in:
2025-05-30 12:14:52 -04:00
parent b87738ca47
commit 0256466f4c
9 changed files with 184 additions and 5 deletions

View File

@ -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
}