From: guenther Date: Sun, 7 Jun 2015 08:11:50 +0000 (+0000) Subject: Add CR4_FSGSBASE X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9707236d42dc9b2c0b21cf99584fcc4542baeb36;p=openbsd Add CR4_FSGSBASE --- 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 */