Spurious exception now detected and handled #83

This commit is contained in:
Adrien Bourmault 2020-02-08 00:32:39 +01:00
parent 4f0922e34a
commit 0b7247ef00
1 changed files with 2 additions and 5 deletions

View File

@ -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;
}