svn commit: r220578 - in head/sys: amd64/include i386/include

Jung-uk Kim jkim at FreeBSD.org
Tue Apr 12 22:12:24 UTC 2011


Author: jkim
Date: Tue Apr 12 22:12:23 2011
New Revision: 220578
URL: http://svn.freebsd.org/changeset/base/220578

Log:
  Add definitions for CPUID instruction 6, ECX information.

Modified:
  head/sys/amd64/include/specialreg.h
  head/sys/i386/include/specialreg.h

Modified: head/sys/amd64/include/specialreg.h
==============================================================================
--- head/sys/amd64/include/specialreg.h	Tue Apr 12 21:08:34 2011	(r220577)
+++ head/sys/amd64/include/specialreg.h	Tue Apr 12 22:12:23 2011	(r220578)
@@ -196,6 +196,12 @@
 #define	CPUID_HTT_CORES		0x00ff0000
 #define	CPUID_LOCAL_APIC_ID	0xff000000
 
+/*
+ * CPUID instruction 6 ecx info
+ */
+#define	CPUID_PERF_STAT		0x00000001
+#define	CPUID_PERF_BIAS		0x00000008
+
 /* 
  * CPUID instruction 0xb ebx info.
  */

Modified: head/sys/i386/include/specialreg.h
==============================================================================
--- head/sys/i386/include/specialreg.h	Tue Apr 12 21:08:34 2011	(r220577)
+++ head/sys/i386/include/specialreg.h	Tue Apr 12 22:12:23 2011	(r220578)
@@ -195,6 +195,12 @@
 #define	CPUID_HTT_CORES		0x00ff0000
 #define	CPUID_LOCAL_APIC_ID	0xff000000
 
+/*
+ * CPUID instruction 6 ecx info
+ */
+#define	CPUID_PERF_STAT		0x00000001
+#define	CPUID_PERF_BIAS		0x00000008
+
 /* 
  * CPUID instruction 0xb ebx info.
  */


More information about the svn-src-head mailing list