NMI Support Patch 7 Straggler:

[HAL]: Piggyback on V8086 handler (don't restore kernel GPF handler) during an NMI, so that we don't enter another fault context during a recursive NMI after display reset. If another NMI does happen, the V8086 GPF handler will just spin.


svn path=/trunk/; revision=44862
This commit is contained in:
ReactOS Portable Systems Group 2010-01-01 21:05:41 +00:00
parent 1b1c2360bb
commit 9e858a7261

View file

@ -313,9 +313,19 @@ NTAPI
HalpRestoreTrapHandlers(VOID)
{
//
// We're back, restore the handlers we over-wrote
// Keep dummy GPF handler in case we get an NMI during V8086
//
if (!HalpNMIInProgress)
{
//
// Not an NMI -- put back the original handler
//
KeRegisterInterruptHandler(13, HalpGpfHandler);
}
//
// Restore invalid opcode handler
//
KeRegisterInterruptHandler(13, HalpGpfHandler);
KeRegisterInterruptHandler(6, HalpBopHandler);
}