mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +00:00
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:
parent
1b1c2360bb
commit
9e858a7261
1 changed files with 12 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue