svn commit: r234392 - in stable/8/sys: amd64/amd64 amd64/include i386/conf i386/i386 i386/include

John Baldwin jhb at FreeBSD.org
Tue Apr 17 19:55:56 UTC 2012


Author: jhb
Date: Tue Apr 17 19:55:55 2012
New Revision: 234392
URL: http://svn.freebsd.org/changeset/base/234392

Log:
  MFC 234059:
  Recognize the RDRAND instruction feature.

Modified:
  stable/8/sys/amd64/amd64/identcpu.c
  stable/8/sys/amd64/include/specialreg.h
  stable/8/sys/i386/i386/identcpu.c
  stable/8/sys/i386/include/specialreg.h
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/boot/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/e1000/   (props changed)
  stable/8/sys/i386/conf/XENHVM   (props changed)

Modified: stable/8/sys/amd64/amd64/identcpu.c
==============================================================================
--- stable/8/sys/amd64/amd64/identcpu.c	Tue Apr 17 19:55:31 2012	(r234391)
+++ stable/8/sys/amd64/amd64/identcpu.c	Tue Apr 17 19:55:55 2012	(r234392)
@@ -299,7 +299,7 @@ printcpuinfo(void)
 				"\034OSXSAVE"	/* OS-Enabled State Management*/
 				"\035AVX"	/* Advanced Vector Extensions */
 				"\036F16C"	/* Half-precision conversions */
-				"\037<b30>"
+				"\037RDRAND"	/* RDRAND Instruction */
 				"\040HV"	/* Hypervisor */
 				);
 			}

Modified: stable/8/sys/amd64/include/specialreg.h
==============================================================================
--- stable/8/sys/amd64/include/specialreg.h	Tue Apr 17 19:55:31 2012	(r234391)
+++ stable/8/sys/amd64/include/specialreg.h	Tue Apr 17 19:55:55 2012	(r234392)
@@ -140,6 +140,7 @@
 #define	CPUID2_OSXSAVE	0x08000000
 #define	CPUID2_AVX	0x10000000
 #define	CPUID2_F16C	0x20000000
+#define	CPUID2_RDRAND	0x40000000
 #define	CPUID2_HV	0x80000000
 
 /*

Modified: stable/8/sys/i386/i386/identcpu.c
==============================================================================
--- stable/8/sys/i386/i386/identcpu.c	Tue Apr 17 19:55:31 2012	(r234391)
+++ stable/8/sys/i386/i386/identcpu.c	Tue Apr 17 19:55:55 2012	(r234392)
@@ -762,7 +762,7 @@ printcpuinfo(void)
 				"\034OSXSAVE"	/* OS-Enabled State Management*/
 				"\035AVX"	/* Advanced Vector Extensions */
 				"\036F16C"	/* Half-precision conversions */
-				"\037<b30>"
+				"\037RDRAND"	/* RDRAND Instruction */
 				"\040HV"	/* Hypervisor */
 				);
 			}

Modified: stable/8/sys/i386/include/specialreg.h
==============================================================================
--- stable/8/sys/i386/include/specialreg.h	Tue Apr 17 19:55:31 2012	(r234391)
+++ stable/8/sys/i386/include/specialreg.h	Tue Apr 17 19:55:55 2012	(r234392)
@@ -137,6 +137,7 @@
 #define	CPUID2_OSXSAVE	0x08000000
 #define	CPUID2_AVX	0x10000000
 #define	CPUID2_F16C	0x20000000
+#define	CPUID2_RDRAND	0x40000000
 #define	CPUID2_HV	0x80000000
 
 /*


More information about the svn-src-all mailing list