From 6c339c64d668a17694ec2456717b8f2543ef1497 Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Tue, 19 Jul 2016 23:36:01 +0200 Subject: [PATCH] trampoline code doesn't longer enable SMEP because old CPUs don't support this feature --- hermit/arch/x86/loader/entry.asm | 1 - 1 file changed, 1 deletion(-) diff --git a/hermit/arch/x86/loader/entry.asm b/hermit/arch/x86/loader/entry.asm index 538cabbb2..3babb7afd 100644 --- a/hermit/arch/x86/loader/entry.asm +++ b/hermit/arch/x86/loader/entry.asm @@ -208,7 +208,6 @@ L1: mov eax, cr4 and eax, 0xfffbf9ff ; disable SSE or eax, (1 << 7) ; enable PGE - or eax, (1 << 20) ; enable SMEP mov cr4, eax ; Set CR0 (PM-bit is already set)