Author: kib
Date: Thu Jan  4 11:40:22 2018
New Revision: 327544
URL: https://svnweb.freebsd.org/changeset/base/327544

Log:
  MFC r327469:
  Add CR4.SMAP control bit.

Modified:
  stable/11/sys/x86/include/specialreg.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/x86/include/specialreg.h
==============================================================================
--- stable/11/sys/x86/include/specialreg.h      Thu Jan  4 11:38:42 2018        
(r327543)
+++ stable/11/sys/x86/include/specialreg.h      Thu Jan  4 11:40:22 2018        
(r327544)
@@ -74,6 +74,7 @@
 #define        CR4_PCIDE 0x00020000    /* Enable Context ID */
 #define        CR4_XSAVE 0x00040000    /* XSETBV/XGETBV */
 #define        CR4_SMEP 0x00100000     /* Supervisor-Mode Execution Prevention 
*/
+#define        CR4_SMAP 0x00200000     /* Supervisor-Mode Access Prevention */
 
 /*
  * Bits in AMD64 special registers.  EFER is 64 bits wide.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to