From 558374a47c7e810f5585494199a7b15835190023 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 22 Jan 2023 01:36:21 +0200 Subject: [PATCH] Kernel: IDT flush only once in initialization --- kernel/arch/i386/IDT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/arch/i386/IDT.cpp b/kernel/arch/i386/IDT.cpp index 1b99ff4df9..c3eff4b215 100644 --- a/kernel/arch/i386/IDT.cpp +++ b/kernel/arch/i386/IDT.cpp @@ -179,13 +179,13 @@ namespace IDT { s_idt[index].low = 0x00080000 | ((uint32_t)(f) & 0x0000ffff); s_idt[index].high = ((uint32_t)(f) & 0xffff0000) | 0x8e00; - flush_idt(); } void register_irq_handler(uint8_t irq, void (*f)()) { s_irq_handlers[IRQ_VECTOR_BASE + irq] = f; register_interrupt_handler(IRQ_VECTOR_BASE + irq, handle_irq_common); + flush_idt(); } void initialize()