Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 Print processor signature (id) after cloc...



details:   https://anonhg.NetBSD.org/src/rev/5e85d9f0df5e
branches:  trunk
changeset: 540232:5e85d9f0df5e
user:      junyoung <junyoung%NetBSD.org@localhost>
date:      Sat Dec 07 15:18:08 2002 +0000

description:
Print processor signature (id) after clock frequency.

diffstat:

 sys/arch/i386/i386/machdep.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 8caac9c32085 -r 5e85d9f0df5e sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Sat Dec 07 13:09:56 2002 +0000
+++ b/sys/arch/i386/i386/machdep.c      Sat Dec 07 15:18:08 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.504 2002/12/06 17:53:52 junyoung Exp $   */
+/*     $NetBSD: machdep.c,v 1.505 2002/12/07 15:18:08 junyoung Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.504 2002/12/06 17:53:52 junyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.505 2002/12/07 15:18:08 junyoung Exp $");
 
 #include "opt_cputype.h"
 #include "opt_ddb.h"
@@ -1716,8 +1716,6 @@
                        panic("identifycpu: strange family value");
                model = CPUID2MODEL(ci->ci_signature);
                step = CPUID2STEPPING(ci->ci_signature);
-               printf("%s: family %x model %x step %x\n", cpuname, family,
-                       model, step);
 
                for (i = 0; i < max; i++) {
                        if (!strncmp((char *)ci->ci_vendor,
@@ -1815,6 +1813,8 @@
        if (ci->ci_tsc_freq != 0)
                printf(", %qd.%02qd MHz", (ci->ci_tsc_freq + 4999) / 1000000,
                    ((ci->ci_tsc_freq + 4999) / 10000) % 100);
+       if (ci->ci_signature != 0)
+               printf(", id 0x%x", ci->ci_signature);
        printf("\n");
 
        if (ci->ci_info)



Home | Main Index | Thread Index | Old Index