summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-06-07 08:11:51 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-06-07 08:11:51 +0000
commit72a31feccdb62abb9103db87f442e32d13dc49a6 (patch)
tree874eb540ee763fa1486888c65714339938961fe4
parent879060768acca9d10c83640d78ed66f15d60833a (diff)
Add CR4_FSGSBASE
-rw-r--r--sys/arch/amd64/include/specialreg.h3
-rw-r--r--sys/arch/i386/include/specialreg.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/specialreg.h b/sys/arch/amd64/include/specialreg.h
index 39ceef0cf30..3899a140e06 100644
--- a/sys/arch/amd64/include/specialreg.h
+++ b/sys/arch/amd64/include/specialreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: specialreg.h,v 1.36 2015/05/28 20:10:58 guenther Exp $ */
+/* $OpenBSD: specialreg.h,v 1.37 2015/06/07 08:11:50 guenther Exp $ */
/* $NetBSD: specialreg.h,v 1.1 2003/04/26 18:39:48 fvdl Exp $ */
/* $NetBSD: x86/specialreg.h,v 1.2 2003/04/25 21:54:30 fvdl Exp $ */
@@ -86,6 +86,7 @@
#define CR4_OSXMMEXCPT 0x00000400 /* enable unmasked SSE exceptions */
#define CR4_VMXE 0x00002000 /* enable virtual machine operation */
#define CR4_SMXE 0x00004000 /* enable safe mode operation */
+#define CR4_FSGSBASE 0x00010000 /* enable {RD,WR}{FS,GS}BASE ops */
#define CR4_PCIDE 0x00020000 /* enable process-context IDs */
#define CR4_OSXSAVE 0x00040000 /* enable XSAVE and extended states */
#define CR4_SMEP 0x00100000 /* supervisor mode exec protection */
diff --git a/sys/arch/i386/include/specialreg.h b/sys/arch/i386/include/specialreg.h
index 7f1f341dfdf..1724f75fd11 100644
--- a/sys/arch/i386/include/specialreg.h
+++ b/sys/arch/i386/include/specialreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: specialreg.h,v 1.51 2015/05/28 20:10:58 guenther Exp $ */
+/* $OpenBSD: specialreg.h,v 1.52 2015/06/07 08:11:50 guenther Exp $ */
/* $NetBSD: specialreg.h,v 1.7 1994/10/27 04:16:26 cgd Exp $ */
/*-
@@ -85,6 +85,7 @@
#define CR4_OSXMMEXCPT 0x00000400 /* enable unmasked SSE exceptions */
#define CR4_VMXE 0x00002000 /* enable virtual machine operation */
#define CR4_SMXE 0x00004000 /* enable safe mode operation */
+#define CR4_FSGSBASE 0x00010000 /* enable {RD,WR}{FS,GS}BASE ops */
#define CR4_PCIDE 0x00020000 /* enable process-context IDs */
#define CR4_OSXSAVE 0x00040000 /* enable XSAVE and extended states */
#define CR4_SMEP 0x00100000 /* supervisor mode exec protection */