svn commit: r344293 - head/sys/x86/include

Konstantin Belousov kib at FreeBSD.org
Tue Feb 19 19:13:49 UTC 2019


Author: kib
Date: Tue Feb 19 19:13:48 2019
New Revision: 344293
URL: https://svnweb.freebsd.org/changeset/base/344293

Log:
  Add definition for %cr4 PKRU enable bit.
  
  Reviewed by:	markj
  Tested by:	pho
  Sponsored by:	The FreeBSD Foundation
  MFC after:	3 days
  Differential revision:	https://reviews.freebsd.org/D18893

Modified:
  head/sys/x86/include/specialreg.h

Modified: head/sys/x86/include/specialreg.h
==============================================================================
--- head/sys/x86/include/specialreg.h	Tue Feb 19 19:04:52 2019	(r344292)
+++ head/sys/x86/include/specialreg.h	Tue Feb 19 19:13:48 2019	(r344293)
@@ -77,6 +77,7 @@
 #define	CR4_XSAVE 0x00040000	/* XSETBV/XGETBV */
 #define	CR4_SMEP 0x00100000	/* Supervisor-Mode Execution Prevention */
 #define	CR4_SMAP 0x00200000	/* Supervisor-Mode Access Prevention */
+#define	CR4_PKE	0x00400000	/* Protection Keys Enable */
 
 /*
  * Bits in AMD64 special registers.  EFER is 64 bits wide.


More information about the svn-src-all mailing list