Index: ntoskrnl/ke/i386/traphdlr.c =================================================================== --- ntoskrnl/ke/i386/traphdlr.c (revision 55714) +++ ntoskrnl/ke/i386/traphdlr.c (working copy) @@ -1181,13 +1181,15 @@ Cr2 = __readcr2(); /* HACK: Check if interrupts are disabled and enable them */ - if (!(TrapFrame->EFlags & EFLAGS_INTERRUPT_MASK)) + //if (!(TrapFrame->EFlags & EFLAGS_INTERRUPT_MASK)) { - /* Enable interupts */ - _enable(); -#ifdef HACK_ABOVE_FIXED + ///* Enable interupts */ + //_enable(); + if (!(TrapFrame->EFlags & EFLAGS_INTERRUPT_MASK)) { + DbgPrint("Page fault with interrupts disabled!\n"); + /* This is illegal */ KeBugCheckWithTf(IRQL_NOT_LESS_OR_EQUAL, Cr2, @@ -1196,7 +1198,6 @@ TrapFrame->Eip, TrapFrame); } -#endif } /* Check for S-LIST fault in kernel mode */