svn commit: r215748 - in head/sys: amd64/include i386/include
Andriy Gapon
avg at FreeBSD.org
Tue Nov 23 13:55:31 UTC 2010
Author: avg
Date: Tue Nov 23 13:55:30 2010
New Revision: 215748
URL: http://svn.freebsd.org/changeset/base/215748
Log:
specialreg.h: add definitions for some useful bits found in CPUID.6 EAX and ECX
CPUID.6 is defined as Thermal and Power Management Leaf by both Intel
and AMD.
Reviewed by: jhb
MFC after: 7 days
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 Nov 23 13:49:15 2010 (r215747)
+++ head/sys/amd64/include/specialreg.h Tue Nov 23 13:55:30 2010 (r215748)
@@ -136,6 +136,15 @@
#define CPUID2_AESNI 0x02000000
/*
+ * Important bits in the Thermal and Power Management flags
+ * CPUID.6 EAX and ECX.
+ */
+#define CPUTPM1_SENSOR 0x00000001
+#define CPUTPM1_TURBO 0x00000002
+#define CPUTPM1_ARAT 0x00000004
+#define CPUTPM2_EFFREQ 0x00000001
+
+/*
* Important bits in the AMD extended cpuid flags
*/
#define AMDID_SYSCALL 0x00000800
Modified: head/sys/i386/include/specialreg.h
==============================================================================
--- head/sys/i386/include/specialreg.h Tue Nov 23 13:49:15 2010 (r215747)
+++ head/sys/i386/include/specialreg.h Tue Nov 23 13:55:30 2010 (r215748)
@@ -133,6 +133,15 @@
#define CPUID2_AESNI 0x02000000
/*
+ * Important bits in the Thermal and Power Management flags
+ * CPUID.6 EAX and ECX.
+ */
+#define CPUTPM1_SENSOR 0x00000001
+#define CPUTPM1_TURBO 0x00000002
+#define CPUTPM1_ARAT 0x00000004
+#define CPUTPM2_EFFREQ 0x00000001
+
+/*
* Important bits in the AMD extended cpuid flags
*/
#define AMDID_SYSCALL 0x00000800
More information about the svn-src-head
mailing list