Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips when printing the cpu_id (because it's un...



details:   https://anonhg.NetBSD.org/src/rev/37dd7c521508
branches:  trunk
changeset: 487962:37dd7c521508
user:      cgd <cgd%NetBSD.org@localhost>
date:      Thu Jun 15 23:39:14 2000 +0000

description:
when printing the cpu_id (because it's unknown or not supported),
print the whole PRID value.  Also, print the PRID value in addition to
the name, when the CPU is known (for data collection purposes).

diffstat:

 sys/arch/mips/mips/mips_machdep.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r e06081b294ac -r 37dd7c521508 sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Thu Jun 15 22:37:17 2000 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Thu Jun 15 23:39:14 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_machdep.c,v 1.88 2000/06/09 06:07:02 soda Exp $   */
+/*     $NetBSD: mips_machdep.c,v 1.89 2000/06/15 23:39:14 cgd Exp $    */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.88 2000/06/09 06:07:02 soda Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.89 2000/06/15 23:39:14 cgd Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_compat_ultrix.h"
@@ -421,7 +421,7 @@
 #endif /* MIPS3 */
 
        default:
-               printf("CPU type (%d) not supported\n", cpu_id.cpu.cp_imp);
+               printf("CPU type (0x%x) not supported\n", cpu_id.cpuprid);
                cpu_reboot(RB_HALT, NULL);
        }
 
@@ -544,9 +544,9 @@
                fpuname = "built-in FPU";
 
        if (cpuname != NULL)
-               printf(cpuname);
+               printf("%s (0x%x)", cpuname, cpu_id.cpuprid);
        else
-               printf("unknown CPU type (0x%x)", cpu_id.cpu.cp_imp);
+               printf("unknown CPU type (0x%x)", cpu_id.cpuprid);
        printf(" Rev. %d.%d", cpu_id.cpu.cp_majrev, cpu_id.cpu.cp_minrev);
 
        if (fpuname != NULL)



Home | Main Index | Thread Index | Old Index