[NTOS:KE] Remove duplicate NX enabling
authorIvan Labutin <linuxrf@gmail.com>
Thu, 9 Nov 2017 22:33:47 +0000 (23:33 +0100)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 20 Dec 2017 05:56:09 +0000 (06:56 +0100)
ntoskrnl/mm/amd64/init.c

index f8d820a..2acdf59 100644 (file)
@@ -203,9 +203,6 @@ MiInitializePageTable(VOID)
     __writecr4(__readcr4() | CR4_PGE);
     ASSERT(__readcr4() & CR4_PGE);
 
-    /* Enable no execute */
-    __writemsr(X86_MSR_EFER, __readmsr(X86_MSR_EFER) | EFER_NXE);
-
     /* Loop the user mode PXEs */
     for (PointerPxe = MiAddressToPxe(0);
          PointerPxe <= MiAddressToPxe(MmHighestUserAddress);