summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2007-02-13 00:22:48 +0000
committerjsg <jsg@openbsd.org>2007-02-13 00:22:48 +0000
commit76520d947bb26457b40084f4b933dbdda262e5cd (patch)
treec11f2baad0588052976f514d40dbd15504776a09
parentCheck for some CPUID flags found on newer Intel processors. (diff)
downloadwireguard-openbsd-76520d947bb26457b40084f4b933dbdda262e5cd.tar.xz
wireguard-openbsd-76520d947bb26457b40084f4b933dbdda262e5cd.zip
Check for xTPR result of CPUID.
ok tom@
-rw-r--r--sys/arch/i386/i386/machdep.c3
-rw-r--r--sys/arch/i386/include/specialreg.h3
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