Author: sginsberg
Date: Wed Oct 14 20:42:18 2015
New Revision: 69531
URL:
http://svn.reactos.org/svn/reactos?rev=69531&view=rev
Log:
[NTOS]
Global pages may not have been enabled when KeFlushCurrentTb is first called, so don't
enable them in there.
Modified:
trunk/reactos/ntoskrnl/ke/i386/cpu.c
Modified: trunk/reactos/ntoskrnl/ke/i386/cpu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/i386/cpu.c?rev…
==============================================================================
--- trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/i386/cpu.c [iso-8859-1] Wed Oct 14 20:42:18 2015
@@ -891,15 +891,15 @@
{
ULONG Cr4;
- /* Disable PGE */
- Cr4 = __readcr4() & ~CR4_PGE;
- __writecr4(Cr4);
+ /* Disable PGE (Note: may not have been enabled yet) */
+ Cr4 = __readcr4();
+ __writecr4(Cr4 & ~CR4_PGE);
/* Flush everything */
__writecr3(__readcr3());
/* Re-enable PGE */
- __writecr4(Cr4 | CR4_PGE);
+ __writecr4(Cr4);
}
else
{