Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/include Add the cr4 flags for PKE and UMIP.



details:   https://anonhg.NetBSD.org/src/rev/611b84742191
branches:  trunk
changeset: 816655:611b84742191
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat Jul 16 13:47:01 2016 +0000

description:
Add the cr4 flags for PKE and UMIP.

diffstat:

 sys/arch/x86/include/specialreg.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r b4762e0ec0a9 -r 611b84742191 sys/arch/x86/include/specialreg.h
--- a/sys/arch/x86/include/specialreg.h Sat Jul 16 12:58:11 2016 +0000
+++ b/sys/arch/x86/include/specialreg.h Sat Jul 16 13:47:01 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: specialreg.h,v 1.87 2016/04/27 08:51:32 msaitoh Exp $  */
+/*     $NetBSD: specialreg.h,v 1.88 2016/07/16 13:47:01 maxv Exp $     */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -81,6 +81,7 @@
 #define CR4_PCE                0x00000100 /* enable RDPMC instruction for all cpls */
 #define CR4_OSFXSR     0x00000200 /* enable fxsave/fxrestor and SSE */
 #define CR4_OSXMMEXCPT 0x00000400 /* enable unmasked SSE exceptions */
+#define CR4_UMIP       0x00000800 /* user-mode instruction prevention */
 #define CR4_VMXE       0x00002000 /* enable VMX operations */
 #define CR4_SMXE       0x00004000 /* enable SMX operations */
 #define CR4_FSGSBASE   0x00010000 /* enable *FSBASE and *GSBASE instructions */
@@ -88,6 +89,7 @@
 #define CR4_OSXSAVE    0x00040000 /* enable xsave and xrestore */
 #define CR4_SMEP       0x00100000 /* enable SMEP support */
 #define CR4_SMAP       0x00200000 /* enable SMAP support */
+#define CR4_PKE                0x00400000 /* protection key enable */
 
 /*
  * Extended Control Register XCR0



Home | Main Index | Thread Index | Old Index