diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-02-13 00:22:49 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2007-02-13 00:22:49 +0000 |
commit | d5fa95490a30370197f6044a517a7ebb31c81c14 (patch) | |
tree | a57253b372ca94d6be87b999bc35a3ec00cedde3 /sys | |
parent | 14517278b70afa7a95339e5eb088515b4226d098 (diff) |
Check for xTPR result of CPUID.
ok tom@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/i386/machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/i386/include/specialreg.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index 0f4d4ba1876..da1fb1ab044 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.374 2007/02/03 16:48:23 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.375 2007/02/13 00:22:48 jsg Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -1150,6 +1150,7 @@ const struct cpu_cpuid_feature i386_cpuid_ecxfeatures[] = { { CPUIDECX_TM2, "TM2" }, { CPUIDECX_CNXTID, "CNXT-ID" }, { CPUIDECX_CX16, "CX16" }, + { CPUIDECX_XTPR, "xTPR" }, }; void diff --git a/sys/arch/i386/include/specialreg.h b/sys/arch/i386/include/specialreg.h index 20e6ab36bda..91a33c214fa 100644 --- a/sys/arch/i386/include/specialreg.h +++ b/sys/arch/i386/include/specialreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: specialreg.h,v 1.28 2006/06/12 13:18:18 dim Exp $ */ +/* $OpenBSD: specialreg.h,v 1.29 2007/02/13 00:22:48 jsg Exp $ */ /* $NetBSD: specialreg.h,v 1.7 1994/10/27 04:16:26 cgd Exp $ */ /*- @@ -139,6 +139,7 @@ #define CPUIDECX_TM2 0x00000100 /* thermal monitor 2 */ #define CPUIDECX_CNXTID 0x00000400 /* Context ID */ #define CPUIDECX_CX16 0x00002000 /* has CMPXCHG16B instruction */ +#define CPUIDECX_XTPR 0x00004000 /* xTPR Update Control */ /* * Model-specific registers for the i386 family |