From 5857733996211fab549ee8b8c2b051546c2face5 Mon Sep 17 00:00:00 2001 From: Ivan Labutin Date: Thu, 9 Nov 2017 23:33:47 +0100 Subject: [PATCH] [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 f8d820acb79..2acdf596e64 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);