Module Name: src
Committed By: mrg
Date: Sat Jan 23 15:55:54 UTC 2010
Modified Files:
src/sys/arch/mips/include: cpu.h
src/sys/arch/mips/mips: mips_machdep.c
Log Message:
rename pridtab{}::cpu_name to cpu_displayname.
should fix a build error reported by h...@.
To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/sys/arch/mips/include/cpu.h
cvs rdiff -u -r1.224 -r1.225 src/sys/arch/mips/mips/mips_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/include/cpu.h
diff -u src/sys/arch/mips/include/cpu.h:1.94 src/sys/arch/mips/include/cpu.h:1.95
--- src/sys/arch/mips/include/cpu.h:1.94 Mon Dec 14 00:46:04 2009
+++ src/sys/arch/mips/include/cpu.h Sat Jan 23 15:55:54 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.94 2009/12/14 00:46:04 matt Exp $ */
+/* $NetBSD: cpu.h,v 1.95 2010/01/23 15:55:54 mrg Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -61,7 +61,7 @@
int cpu_flags;
u_int cpu_cp0flags; /* presence of some cp0 regs */
u_int cpu_cidflags; /* company-specific flags */
- const char *cpu_name;
+ const char *cpu_displayname;
};
extern const struct pridtab *mycpu;
Index: src/sys/arch/mips/mips/mips_machdep.c
diff -u src/sys/arch/mips/mips/mips_machdep.c:1.224 src/sys/arch/mips/mips/mips_machdep.c:1.225
--- src/sys/arch/mips/mips/mips_machdep.c:1.224 Tue Dec 15 18:24:47 2009
+++ src/sys/arch/mips/mips/mips_machdep.c Sat Jan 23 15:55:54 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_machdep.c,v 1.224 2009/12/15 18:24:47 matt Exp $ */
+/* $NetBSD: mips_machdep.c,v 1.225 2010/01/23 15:55:54 mrg Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -112,7 +112,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.224 2009/12/15 18:24:47 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.225 2010/01/23 15:55:54 mrg Exp $");
#include "opt_cputype.h"
#include "opt_compat_netbsd32.h"
@@ -860,7 +860,7 @@
curlwp = &lwp0;
mycpu = NULL;
- for (ct = cputab; ct->cpu_name != NULL; ct++) {
+ for (ct = cputab; ct->cpu_displayname != NULL; ct++) {
if (MIPS_PRID_CID(cpu_id) != ct->cpu_cid ||
MIPS_PRID_IMPL(cpu_id) != ct->cpu_pid)
continue;
@@ -1095,13 +1095,13 @@
const char *cpuname, *fpuname;
int i;
- cpuname = mycpu->cpu_name;
+ cpuname = mycpu->cpu_displayname;
fpuname = NULL;
for (i = 0; i < sizeof(fputab)/sizeof(fputab[0]); i++) {
if (MIPS_PRID_CID(fpu_id) == fputab[i].cpu_cid &&
MIPS_PRID_IMPL(fpu_id) == fputab[i].cpu_pid) {
- fpuname = fputab[i].cpu_name;
+ fpuname = fputab[i].cpu_displayname;
break;
}
}