mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
interrupt: interrupt_set()
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user