projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cbe5a5
)
x86, cpufeature: Add feature bit for SMAP
author
H. Peter Anvin
<hpa@zytor.com>
Sun, 9 Sep 2012 18:12:04 +0000
(11:12 -0700)
committer
H. Peter Anvin
<hpa@zytor.com>
Sun, 9 Sep 2012 18:12:04 +0000
(11:12 -0700)
Add CPUID feature bit for Supervisor Mode Access Prevention (SMAP).
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link:
http://lkml.kernel.org/n/tip-ethzcr5nipikl6hd5q8ssepq@git.kernel.org
arch/x86/include/asm/cpufeature.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/cpufeature.h
b/arch/x86/include/asm/cpufeature.h
index 6b7ee5ff682024f80ec205bf7bdc9c7814787e01..633b6176cf6097bd64cde003dbcfadee48c88a34 100644
(file)
--- a/
arch/x86/include/asm/cpufeature.h
+++ b/
arch/x86/include/asm/cpufeature.h
@@
-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__)