Skip to content

Commit

Permalink
x86, cpufeature: Add feature bit for SMAP
Browse files Browse the repository at this point in the history
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
  • Loading branch information
H. Peter Anvin committed Sep 9, 2012
1 parent 4cbe5a5 commit 05194cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/include/asm/cpufeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down

0 comments on commit 05194cf

Please sign in to comment.