Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/cpuctl/arch Print CPU stepping level



details:   https://anonhg.NetBSD.org/src/rev/7b6adddde943
branches:  trunk
changeset: 777725:7b6adddde943
user:      sborrill <sborrill%NetBSD.org@localhost>
date:      Fri Mar 02 16:29:31 2012 +0000

description:
Print CPU stepping level

diffstat:

 usr.sbin/cpuctl/arch/i386.c |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r c0f00a9002a7 -r 7b6adddde943 usr.sbin/cpuctl/arch/i386.c
--- a/usr.sbin/cpuctl/arch/i386.c       Fri Mar 02 16:23:40 2012 +0000
+++ b/usr.sbin/cpuctl/arch/i386.c       Fri Mar 02 16:29:31 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i386.c,v 1.28 2012/02/29 23:34:01 joerg Exp $  */
+/*     $NetBSD: i386.c,v 1.29 2012/03/02 16:29:31 sborrill Exp $       */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: i386.c,v 1.28 2012/02/29 23:34:01 joerg Exp $");
+__RCSID("$NetBSD: i386.c,v 1.29 2012/03/02 16:29:31 sborrill Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -1517,9 +1517,10 @@
 #endif
 
        aprint_normal_dev(ci->ci_dev, "family %02x model %02x "
-           "extfamily %02x extmodel %02x\n", CPUID2FAMILY(ci->ci_signature),
-           CPUID2MODEL(ci->ci_signature), CPUID2EXTFAMILY(ci->ci_signature),
-           CPUID2EXTMODEL(ci->ci_signature));
+           "extfamily %02x extmodel %02x stepping %02x\n",
+           CPUID2FAMILY(ci->ci_signature), CPUID2MODEL(ci->ci_signature),
+           CPUID2EXTFAMILY(ci->ci_signature), CPUID2EXTMODEL(ci->ci_signature),
+           CPUID2STEPPING(ci->ci_signature));
 }
 
 static const char *



Home | Main Index | Thread Index | Old Index