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 //