changeset 3779:f34a44686f8b

6532527 psrinfo output should show "EAX Page 1" hex value to identify processors
author dmick
date Thu, 08 Mar 2007 16:22:30 -0800
parents 7ea2cf578078
children 26abf9fe811a
files usr/src/uts/i86pc/os/cpuid.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/i86pc/os/cpuid.c	Thu Mar 08 15:03:17 2007 -0800
+++ b/usr/src/uts/i86pc/os/cpuid.c	Thu Mar 08 16:22:30 2007 -0800
@@ -1890,18 +1890,20 @@
 	struct cpuid_info *cpi = cpu->cpu_m.mcpu_cpi;
 
 	static const char fmt[] =
-	    "x86 (%s family %d model %d step %d clock %d MHz)";
+	    "x86 (%s %X family %d model %d step %d clock %d MHz)";
 	static const char fmt_ht[] =
-	    "x86 (chipid 0x%x %s family %d model %d step %d clock %d MHz)";
+	    "x86 (chipid 0x%x %s %X family %d model %d step %d clock %d MHz)";
 
 	ASSERT(cpuid_checkpass(cpu, 1));
 
 	if (cpuid_is_cmt(cpu))
 		return (snprintf(s, n, fmt_ht, cpi->cpi_chipid,
-		    cpi->cpi_vendorstr, cpi->cpi_family, cpi->cpi_model,
+		    cpi->cpi_vendorstr, cpi->cpi_std[1].cp_eax,
+		    cpi->cpi_family, cpi->cpi_model,
 		    cpi->cpi_step, cpu->cpu_type_info.pi_clock));
 	return (snprintf(s, n, fmt,
-	    cpi->cpi_vendorstr, cpi->cpi_family, cpi->cpi_model,
+	    cpi->cpi_vendorstr, cpi->cpi_std[1].cp_eax,
+	    cpi->cpi_family, cpi->cpi_model,
 	    cpi->cpi_step, cpu->cpu_type_info.pi_clock));
 }