svn commit: r234391 - in stable/9/sys: amd64/amd64 amd64/include
i386/conf i386/i386 i386/include kern
John Baldwin
jhb at FreeBSD.org
Tue Apr 17 19:55:32 UTC 2012
Author: jhb
Date: Tue Apr 17 19:55:31 2012
New Revision: 234391
URL: http://svn.freebsd.org/changeset/base/234391
Log:
MFC 234059:
Recognize the RDRAND instruction feature.
Modified:
stable/9/sys/amd64/amd64/identcpu.c
stable/9/sys/amd64/include/specialreg.h
stable/9/sys/i386/i386/identcpu.c
stable/9/sys/i386/include/specialreg.h
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/amd64/include/xen/ (props changed)
stable/9/sys/boot/ (props changed)
stable/9/sys/boot/i386/efi/ (props changed)
stable/9/sys/boot/ia64/efi/ (props changed)
stable/9/sys/boot/ia64/ski/ (props changed)
stable/9/sys/boot/powerpc/boot1.chrp/ (props changed)
stable/9/sys/boot/powerpc/ofw/ (props changed)
stable/9/sys/cddl/contrib/opensolaris/ (props changed)
stable/9/sys/conf/ (props changed)
stable/9/sys/contrib/dev/acpica/ (props changed)
stable/9/sys/contrib/octeon-sdk/ (props changed)
stable/9/sys/contrib/pf/ (props changed)
stable/9/sys/contrib/x86emu/ (props changed)
stable/9/sys/fs/ (props changed)
stable/9/sys/fs/ntfs/ (props changed)
stable/9/sys/i386/conf/XENHVM (props changed)
stable/9/sys/kern/subr_witness.c (props changed)
Modified: stable/9/sys/amd64/amd64/identcpu.c
==============================================================================
--- stable/9/sys/amd64/amd64/identcpu.c Tue Apr 17 19:42:55 2012 (r234390)
+++ stable/9/sys/amd64/amd64/identcpu.c Tue Apr 17 19:55:31 2012 (r234391)
@@ -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: stable/9/sys/amd64/include/specialreg.h
==============================================================================
--- stable/9/sys/amd64/include/specialreg.h Tue Apr 17 19:42:55 2012 (r234390)
+++ stable/9/sys/amd64/include/specialreg.h Tue Apr 17 19:55:31 2012 (r234391)
@@ -153,6 +153,7 @@
#define CPUID2_OSXSAVE 0x08000000
#define CPUID2_AVX 0x10000000
#define CPUID2_F16C 0x20000000
+#define CPUID2_RDRAND 0x40000000
#define CPUID2_HV 0x80000000
/*
Modified: stable/9/sys/i386/i386/identcpu.c
==============================================================================
--- stable/9/sys/i386/i386/identcpu.c Tue Apr 17 19:42:55 2012 (r234390)
+++ stable/9/sys/i386/i386/identcpu.c Tue Apr 17 19:55:31 2012 (r234391)
@@ -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: stable/9/sys/i386/include/specialreg.h
==============================================================================
--- stable/9/sys/i386/include/specialreg.h Tue Apr 17 19:42:55 2012 (r234390)
+++ stable/9/sys/i386/include/specialreg.h Tue Apr 17 19:55:31 2012 (r234391)
@@ -138,6 +138,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-stable-9
mailing list