mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
interrupt: move initial interrupt_set(true) from apic.c to idt.c
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user