Move arch-local variable to a better namespace to make build again.
This commit is contained in:
parent
f6d80c92e0
commit
e5b23d6072
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: machdep.c,v 1.107 2009/12/16 23:19:07 matt Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.108 2010/01/21 01:23:14 pooka Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 Shin Takemura, All rights reserved.
|
||||
@ -108,7 +108,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.107 2009/12/16 23:19:07 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.108 2010/01/21 01:23:14 pooka Exp $");
|
||||
|
||||
#include "opt_vr41xx.h"
|
||||
#include "opt_tx39xx.h"
|
||||
@ -192,7 +192,7 @@ static int __bicons_enable;
|
||||
#endif
|
||||
|
||||
/* the following is used externally (sysctl_hw) */
|
||||
char cpu_name[40]; /* set CPU depend xx_init() */
|
||||
char hpcmips_cpuname[40]; /* set CPU depend xx_init() */
|
||||
|
||||
struct cpu_info cpu_info_store; /* only one CPU */
|
||||
int cpuspeed = 1; /* approx # instr per usec. */
|
||||
@ -551,7 +551,7 @@ cpu_startup(void)
|
||||
* Good {morning,afternoon,evening,night}.
|
||||
*/
|
||||
printf("%s%s", copyright, version);
|
||||
sprintf(cpu_model, "%s (%s)", platid_name(&platid), cpu_name);
|
||||
sprintf(cpu_model, "%s (%s)", platid_name(&platid), hpcmips_cpuname);
|
||||
printf("%s\n", cpu_model);
|
||||
format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
|
||||
printf("total memory = %s\n", pbuf);
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* $NetBSD: cpu.h,v 1.12 2002/01/31 17:56:34 uch Exp $ */
|
||||
/* $NetBSD: cpu.h,v 1.13 2010/01/21 01:23:15 pooka Exp $ */
|
||||
|
||||
#include <mips/cpu.h>
|
||||
#ifndef _LOCORE
|
||||
extern char cpu_name[];
|
||||
extern char hpcmips_cpuname[];
|
||||
#endif
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tx39.c,v 1.40 2009/03/18 10:22:29 cegger Exp $ */
|
||||
/* $NetBSD: tx39.c,v 1.41 2010/01/21 01:23:15 pooka Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tx39.c,v 1.40 2009/03/18 10:22:29 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tx39.c,v 1.41 2010/01/21 01:23:15 pooka Exp $");
|
||||
|
||||
#include "opt_vr41xx.h"
|
||||
#include "opt_tx39xx.h"
|
||||
@ -119,12 +119,13 @@ tx_init(void)
|
||||
switch (model) {
|
||||
default:
|
||||
/* Unknown TOSHIBA TX39-series */
|
||||
sprintf(cpu_name, "Unknown TOSHIBA TX39-series %x", model);
|
||||
sprintf(hpcmips_cpuname,
|
||||
"Unknown TOSHIBA TX39-series %x", model);
|
||||
break;
|
||||
case TMPR3912:
|
||||
tx39clock_cpuspeed(&cpuclock, &cpuspeed);
|
||||
|
||||
sprintf(cpu_name, "TOSHIBA TMPR3912 %d.%02d MHz",
|
||||
sprintf(hpcmips_cpuname, "TOSHIBA TMPR3912 %d.%02d MHz",
|
||||
cpuclock / 1000000, (cpuclock % 1000000) / 10000);
|
||||
tc->tc_chipset = __TX391X;
|
||||
break;
|
||||
@ -132,7 +133,7 @@ tx_init(void)
|
||||
tx39clock_cpuspeed(&cpuclock, &cpuspeed);
|
||||
rev = tx_conf_read(tc, TX3922_REVISION_REG);
|
||||
|
||||
sprintf(cpu_name, "TOSHIBA TMPR3922 rev. %x.%x "
|
||||
sprintf(hpcmips_cpuname, "TOSHIBA TMPR3922 rev. %x.%x "
|
||||
"%d.%02d MHz", (rev >> 4) & 0xf, rev & 0xf,
|
||||
cpuclock / 1000000, (cpuclock % 1000000) / 10000);
|
||||
tc->tc_chipset = __TX392X;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vr.c,v 1.54 2009/08/19 12:49:24 jun Exp $ */
|
||||
/* $NetBSD: vr.c,v 1.55 2010/01/21 01:23:15 pooka Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999-2002
|
||||
@ -35,7 +35,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vr.c,v 1.54 2009/08/19 12:49:24 jun Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vr.c,v 1.55 2010/01/21 01:23:15 pooka Exp $");
|
||||
|
||||
#include "opt_vr41xx.h"
|
||||
#include "opt_tx39xx.h"
|
||||
@ -302,14 +302,14 @@ vr_init(void)
|
||||
platform.reboot = vr_reboot;
|
||||
|
||||
#if NVRBCU > 0
|
||||
sprintf(cpu_name, "NEC %s rev%d.%d %d.%03dMHz",
|
||||
sprintf(hpcmips_cpuname, "NEC %s rev%d.%d %d.%03dMHz",
|
||||
vrbcu_vrip_getcpuname(),
|
||||
vrbcu_vrip_getcpumajor(),
|
||||
vrbcu_vrip_getcpuminor(),
|
||||
vrbcu_vrip_getcpuclock() / 1000000,
|
||||
(vrbcu_vrip_getcpuclock() % 1000000) / 1000);
|
||||
#else
|
||||
sprintf(cpu_name, "NEC VR41xx");
|
||||
sprintf(hpcmips_cpuname, "NEC VR41xx");
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user