[NTOS:KE] Remove duplicate NX enabling

This commit is contained in:
Ivan Labutin 2017-11-09 23:33:47 +01:00 committed by Timo Kreuzer
parent 39dd47cebb
commit 5857733996

View 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);