interrupt: move initial interrupt_set(true) from apic.c to idt.c

This commit is contained in:
Matheus
2023-06-25 19:57:01 -03:00
parent 135b9d8009
commit 3a85c64b80
2 changed files with 1 additions and 2 deletions
-2
View File
@@ -226,8 +226,6 @@ void arch_apic_initap() {
if (current->acpiid == _cpu()->acpiid || current->acpiid == 0xff)
writelapic(APIC_LVT_LINT0 + 0x10 * current->lint, (nmiisr->id & 0xff) | LVT_DELIVERY_NMI | (current->flags << 12));
}
interrupt_set(true);
}
void arch_apic_eoi() {
+1
View File
@@ -82,6 +82,7 @@ void arch_idt_reload() {
interrupt_register(i, exceptisr, NULL, IPL_MAX);
_cpu()->ipl = IPL_NORMAL;
interrupt_set(true);
}
void arch_interrupt_disable() {