reactos/ntoskrnl/ke/i386
diff -u -r1.94 -r1.95
--- exp.c 20 Nov 2004 23:46:36 -0000 1.94
+++ exp.c 27 Nov 2004 19:32:57 -0000 1.95
@@ -546,6 +546,11 @@
cr2 = Ke386GetCr2();
Tf->DebugPointer = (PVOID)cr2;
+ if (ExceptionNr == 14 && Tf->Eflags & FLAG_IF)
+ {
+ Ke386EnableInterrupts();
+ }
+
/*
* If this was a V86 mode exception then handle it specially
*/
@@ -574,10 +579,6 @@
{
KEBUGCHECKWITHTF(ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY, 0, 0, 0, 0, Tf);
}
- if (Tf->Eflags & FLAG_IF)
- {
- Ke386EnableInterrupts();
- }
Status = MmPageFault(Tf->Cs&0xffff,
&Tf->Eip,
&Tf->Eax,