From 0b7247ef003afe0c358fe9fe823b39f08fb8f409 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Sat, 8 Feb 2020 00:32:39 +0100 Subject: [PATCH] Spurious exception now detected and handled #83 --- kaleid/kernel/ke/idt.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/kaleid/kernel/ke/idt.c b/kaleid/kernel/ke/idt.c index 9e0460c..68d5e23 100644 --- a/kaleid/kernel/ke/idt.c +++ b/kaleid/kernel/ke/idt.c @@ -319,11 +319,8 @@ void _KeHandleISR(ISRFrame_t *regs) if ((regs->intNo == 0x0F) || (regs->intNo == 0x1F)) return; // INTEL RESERVED - if (!(KeGetIrqRegister(0x0b) & (1<<(regs->intNo - 0x20)))) { - bprintf(BStdDbg, "[%d]\tISR 0x%x SPURIOUS\n", - KeGetTicks(), - regs->intNo - ); + // Spurious interrupt handling. + if (!(KeGetIrqRegister(0x0b) & (1<<(regs->intNo - 0x20)))) { KeSpuriousCount++; return; }