From: Fenghua Yu Date: Wed, 18 May 2011 01:44:27 +0000 (-0700) Subject: x86, cpu: Add SMEP CPU feature in CR4 X-Git-Tag: v3.0-rc1~393^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc23c0bccf5eea171c87b3db285d032b9a5f06c4;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git x86, cpu: Add SMEP CPU feature in CR4 Add support for newly documented SMEP (Supervisor Mode Execution Protection) CPU feature in CR4. Signed-off-by: Fenghua Yu LKML-Reference: <1305683069-25394-3-git-send-email-fenghua.yu@intel.com> Signed-off-by: H. Peter Anvin --- diff --git a/arch/x86/include/asm/processor-flags.h b/arch/x86/include/asm/processor-flags.h index a898a2b..59ab4df 100644 --- a/arch/x86/include/asm/processor-flags.h +++ b/arch/x86/include/asm/processor-flags.h @@ -60,6 +60,7 @@ #define X86_CR4_OSXMMEXCPT 0x00000400 /* enable unmasked SSE exceptions */ #define X86_CR4_VMXE 0x00002000 /* enable VMX virtualization */ #define X86_CR4_OSXSAVE 0x00040000 /* enable xsave and xrestore */ +#define X86_CR4_SMEP 0x00100000 /* enable SMEP support */ /* * x86-64 Task Priority Register, CR8