From 3e8555315bd8fee554bc45c5c6482de00a1f662c Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 7 Feb 2020 00:51:18 +0100 Subject: [PATCH] Spurious interrupt? --- kaleid/kernel/ke/idt.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/kaleid/kernel/ke/idt.c b/kaleid/kernel/ke/idt.c index adeacc8..d67ebb9 100644 --- a/kaleid/kernel/ke/idt.c +++ b/kaleid/kernel/ke/idt.c @@ -73,6 +73,7 @@ static char *ExceptionsChar[32] = { static void EnablePIC(void); static void EarlyExceptionHandler(ISRFrame_t *regs); static void DoubleFaultHandler(ISRFrame_t *regs); +static void SpuriousChkHandler(ISRFrame_t *regs); // // Registers an isr with his IRQ to handle driver interrupts @@ -181,6 +182,7 @@ void KeSetupIDT(void) KeRegisterISR(KeBrkDumpRegisters, 0x3); KeRegisterISR(DoubleFaultHandler, 0x8); + KeRegisterISR(SpuriousChkHandler, 0x27); // Load IDT KeLoadIDT(); @@ -343,6 +345,14 @@ static void EarlyExceptionHandler(ISRFrame_t *regs) KeHaltCPU(); } +// +// Spurious interruption check +// +void SpuriousChkHandler(ISRFrame_t *regs) +{ + // XXX; +} + // // Double Fault handling and stack overflow detection //