interrupt: interrupt_set()

This commit is contained in:
Matheus
2023-04-23 15:06:07 -03:00
parent 74232131fd
commit fefde1793e
4 changed files with 26 additions and 0 deletions
+8
View File
@@ -80,3 +80,11 @@ void arch_idt_reload() {
for (int i = 0; i < 32; ++i)
interrupt_register(i, exceptisr, NULL, 0); // TODO assign priority
}
void arch_interrupt_disable() {
asm("cli");
}
void arch_interrupt_enable() {
asm("sti");
}