Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/hp300 Use complete cpu name strings for reada...



details:   https://anonhg.NetBSD.org/src/rev/8bf4e9430c68
branches:  trunk
changeset: 371905:8bf4e9430c68
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Oct 16 15:20:59 2022 +0000

description:
Use complete cpu name strings for readability.

diffstat:

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

diffs (62 lines):

diff -r c009a4004bb9 -r 8bf4e9430c68 sys/arch/hp300/hp300/machdep.c
--- a/sys/arch/hp300/hp300/machdep.c    Sun Oct 16 15:16:12 2022 +0000
+++ b/sys/arch/hp300/hp300/machdep.c    Sun Oct 16 15:20:59 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.236 2021/10/09 20:00:41 tsutsui Exp $    */
+/*     $NetBSD: machdep.c,v 1.237 2022/10/16 15:20:59 tsutsui Exp $    */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.236 2021/10/09 20:00:41 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.237 2022/10/16 15:20:59 tsutsui Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -370,7 +370,7 @@
 static void
 identifycpu(void)
 {
-       const char *t, *mc, *s, *mmu;
+       const char *t, *cpu, *s, *mmu;
        int i; 
        char fpu[64], cache[64];
 
@@ -397,13 +397,13 @@
         */
        switch (cputype) {
        case CPU_68040:
-               mc = "40";
+               cpu = "MC68040";
                break;
        case CPU_68030:
-               mc = "30";
+               cpu = "MC68030";
                break;
        case CPU_68020:
-               mc = "20";
+               cpu = "MC68020";
                break;
        default:
                printf("\nunknown cputype %d\n", cputype);
@@ -426,7 +426,7 @@
                mmu = ", HP MMU";
                break;
        default:
-               printf("MC680%s\nunknown MMU type %d\n", mc, mmutype);
+               printf("%s\nunknown MMU type %d\n", cpu, mmutype);
                panic("startup");
        }
 
@@ -478,7 +478,7 @@
                }
        }
 
-       cpu_setmodel("HP 9000/%s (%sMHz MC680%s CPU%s%s%s)", t, s, mc,
+       cpu_setmodel("HP 9000/%s (%sMHz %s CPU%s%s%s)", t, s, cpu,
            mmu, fpu, cache);
        printf("%s\n", cpu_getmodel());
 #ifdef DIAGNOSTIC



Home | Main Index | Thread Index | Old Index