svn commit: r234059 - in head/sys: amd64/amd64 i386/i386 x86/include

John Baldwin jhb at FreeBSD.org
Mon Apr 9 15:20:17 UTC 2012


Author: jhb
Date: Mon Apr  9 15:20:16 2012
New Revision: 234059
URL: http://svn.freebsd.org/changeset/base/234059

Log:
  Recognize the RDRAND instruction feature.
  
  Submitted by:	Michael Fuckner  michael fuckner net
  MFC after:	3 days

Modified:
  head/sys/amd64/amd64/identcpu.c
  head/sys/i386/i386/identcpu.c
  head/sys/x86/include/specialreg.h

Modified: head/sys/amd64/amd64/identcpu.c
==============================================================================
--- head/sys/amd64/amd64/identcpu.c	Mon Apr  9 14:47:18 2012	(r234058)
+++ head/sys/amd64/amd64/identcpu.c	Mon Apr  9 15:20:16 2012	(r234059)
@@ -303,7 +303,7 @@ printcpuinfo(void)
 				"\034OSXSAVE"	/* OS-Enabled State Management*/
 				"\035AVX"	/* Advanced Vector Extensions */
 				"\036F16C"	/* Half-precision conversions */
-				"\037<b30>"
+				"\037RDRAND"	/* RDRAND Instruction */
 				"\040HV"	/* Hypervisor */
 				);
 			}

Modified: head/sys/i386/i386/identcpu.c
==============================================================================
--- head/sys/i386/i386/identcpu.c	Mon Apr  9 14:47:18 2012	(r234058)
+++ head/sys/i386/i386/identcpu.c	Mon Apr  9 15:20:16 2012	(r234059)
@@ -779,7 +779,7 @@ printcpuinfo(void)
 				"\034OSXSAVE"	/* OS-Enabled State Management*/
 				"\035AVX"	/* Advanced Vector Extensions */
 				"\036F16C"	/* Half-precision conversions */
-				"\037<b30>"
+				"\037RDRAND"	/* RDRAND Instruction */
 				"\040HV"	/* Hypervisor */
 				);
 			}

Modified: head/sys/x86/include/specialreg.h
==============================================================================
--- head/sys/x86/include/specialreg.h	Mon Apr  9 14:47:18 2012	(r234058)
+++ head/sys/x86/include/specialreg.h	Mon Apr  9 15:20:16 2012	(r234059)
@@ -153,6 +153,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