Skip to contentSkip to conversation

x86, cpufeature: Add feature bit for SMAP

tip:x86/cpufeature tip-bot for H. Peter Anvin 1 participant 1 message Sep 9, 2012 x86

lore
Share & tools
lore
#0 lore raw
Commit-ID:  05194cfc547528a01d655262c49da3b1311c4b11
Gitweb:     http://git.kernel.org/tip/05194cfc547528a01d655262c49da3b1311c4b11
Author:     H. Peter Anvin <[email protected]>
AuthorDate: Sun, 9 Sep 2012 11:12:04 -0700
Committer:  H. Peter Anvin <[email protected]>
CommitDate: Sun, 9 Sep 2012 11:12:04 -0700

x86, cpufeature: Add feature bit for SMAP

Add CPUID feature bit for Supervisor Mode Access Prevention (SMAP).

---
 arch/x86/include/asm/cpufeature.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/x86/include/asm/cpufeature.h +1 -0
index 6b7ee5f..633b617 100644
@@ -209,6 +209,7 @@
 #define X86_FEATURE_RTM		(9*32+11) /* Restricted Transactional Memory */
 #define X86_FEATURE_RDSEED	(9*32+18) /* The RDSEED instruction */
 #define X86_FEATURE_ADX		(9*32+19) /* The ADCX and ADOX instructions */
+#define X86_FEATURE_SMAP	(9*32+20) /* Supervisor Mode Access Prevention */
 
 #if defined(__KERNEL__) && !defined(__ASSEMBLY__)