some bug corrected

This commit is contained in:
Adrien Bourmault 2020-02-08 16:02:59 +01:00
parent 4ee95db32e
commit 821019e0d8
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ void _KeHandleISR(ISRFrame_t *regs)
return; // INTEL RESERVED return; // INTEL RESERVED
// Spurious interrupt handling. // Spurious interrupt handling.
if (!(KeGetIrqRegister(0x0b) & (1<<(regs->intNo - 0x20)))) { if (regs->intNo > 0x20 && !(KeGetIrqRegister(0x0b) & (1<<(regs->intNo - 0x20)))) {
KeSpuriousCount++; KeSpuriousCount++;
return; return;
} }