From 821019e0d8a26efddbe32d5a42f469debf6e71b0 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Sat, 8 Feb 2020 16:02:59 +0100 Subject: [PATCH] some bug corrected --- kaleid/kernel/ke/idt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kaleid/kernel/ke/idt.c b/kaleid/kernel/ke/idt.c index 68d5e23..23d881b 100644 --- a/kaleid/kernel/ke/idt.c +++ b/kaleid/kernel/ke/idt.c @@ -320,7 +320,7 @@ void _KeHandleISR(ISRFrame_t *regs) return; // INTEL RESERVED // Spurious interrupt handling. - if (!(KeGetIrqRegister(0x0b) & (1<<(regs->intNo - 0x20)))) { + if (regs->intNo > 0x20 && !(KeGetIrqRegister(0x0b) & (1<<(regs->intNo - 0x20)))) { KeSpuriousCount++; return; }