1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00

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

View File

@ -319,11 +319,8 @@ void _KeHandleISR(ISRFrame_t *regs)
if ((regs->intNo == 0x0F) || (regs->intNo == 0x1F)) if ((regs->intNo == 0x0F) || (regs->intNo == 0x1F))
return; // INTEL RESERVED return; // INTEL RESERVED
if (!(KeGetIrqRegister(0x0b) & (1<<(regs->intNo - 0x20)))) { // Spurious interrupt handling.
bprintf(BStdDbg, "[%d]\tISR 0x%x SPURIOUS\n", if (!(KeGetIrqRegister(0x0b) & (1<<(regs->intNo - 0x20)))) {
KeGetTicks(),
regs->intNo
);
KeSpuriousCount++; KeSpuriousCount++;
return; return;
} }