https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5857733996211fab549ee…
commit 5857733996211fab549ee8b8c2b051546c2face5
Author: Ivan Labutin <linuxrf(a)gmail.com>
AuthorDate: Thu Nov 9 23:33:47 2017 +0100
[NTOS:KE] Remove duplicate NX enabling
---
ntoskrnl/mm/amd64/init.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/ntoskrnl/mm/amd64/init.c b/ntoskrnl/mm/amd64/init.c
index f8d820acb7..2acdf596e6 100644
--- a/ntoskrnl/mm/amd64/init.c
+++ b/ntoskrnl/mm/amd64/init.c
@@ -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);