Spurious interrupt?

This commit is contained in:
Adrien Bourmault 2020-02-07 00:51:18 +01:00
parent 0532fa6421
commit 3e8555315b
1 changed files with 10 additions and 0 deletions

View File

@ -73,6 +73,7 @@ static char *ExceptionsChar[32] = {
static void EnablePIC(void); static void EnablePIC(void);
static void EarlyExceptionHandler(ISRFrame_t *regs); static void EarlyExceptionHandler(ISRFrame_t *regs);
static void DoubleFaultHandler(ISRFrame_t *regs); static void DoubleFaultHandler(ISRFrame_t *regs);
static void SpuriousChkHandler(ISRFrame_t *regs);
// //
// Registers an isr with his IRQ to handle driver interrupts // Registers an isr with his IRQ to handle driver interrupts
@ -181,6 +182,7 @@ void KeSetupIDT(void)
KeRegisterISR(KeBrkDumpRegisters, 0x3); KeRegisterISR(KeBrkDumpRegisters, 0x3);
KeRegisterISR(DoubleFaultHandler, 0x8); KeRegisterISR(DoubleFaultHandler, 0x8);
KeRegisterISR(SpuriousChkHandler, 0x27);
// Load IDT // Load IDT
KeLoadIDT(); KeLoadIDT();
@ -343,6 +345,14 @@ static void EarlyExceptionHandler(ISRFrame_t *regs)
KeHaltCPU(); KeHaltCPU();
} }
//
// Spurious interruption check
//
void SpuriousChkHandler(ISRFrame_t *regs)
{
// XXX;
}
// //
// Double Fault handling and stack overflow detection // Double Fault handling and stack overflow detection
// //