make i386_nocpuid_cpus[] and i386_cpuid_cpus[] const - this pushes
another ~1.4KB to text section
This commit is contained in:
parent
1d655fabae
commit
97669de104
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.417 2000/11/16 10:19:02 jdolecek Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.418 2000/11/16 17:00:17 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -570,7 +570,7 @@ char cpu_model[120];
|
|||
* Note: these are just the ones that may not have a cpuid instruction.
|
||||
* We deal with the rest in a different way.
|
||||
*/
|
||||
struct cpu_nocpuid_nameclass i386_nocpuid_cpus[] = {
|
||||
const struct cpu_nocpuid_nameclass i386_nocpuid_cpus[] = {
|
||||
{ CPUVENDOR_INTEL, "Intel", "386SX", CPUCLASS_386,
|
||||
NULL}, /* CPU_386SX */
|
||||
{ CPUVENDOR_INTEL, "Intel", "386DX", CPUCLASS_386,
|
||||
|
@ -601,7 +601,7 @@ const char *modifiers[] = {
|
|||
""
|
||||
};
|
||||
|
||||
struct cpu_cpuid_nameclass i386_cpuid_cpus[] = {
|
||||
const struct cpu_cpuid_nameclass i386_cpuid_cpus[] = {
|
||||
{
|
||||
"GenuineIntel",
|
||||
CPUVENDOR_INTEL,
|
||||
|
@ -878,7 +878,7 @@ identifycpu()
|
|||
const char *name, *modifier, *vendorname, *brand = "";
|
||||
int class = CPUCLASS_386, vendor, i, max;
|
||||
int family, model, step, modif;
|
||||
struct cpu_cpuid_nameclass *cpup = NULL;
|
||||
const struct cpu_cpuid_nameclass *cpup = NULL;
|
||||
void (*cpu_setup) __P((void));
|
||||
|
||||
if (cpuid_level == -1) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cpu.h,v 1.65 2000/08/25 01:04:08 thorpej Exp $ */
|
||||
/* $NetBSD: cpu.h,v 1.66 2000/11/16 17:00:18 jdolecek Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
|
@ -148,8 +148,8 @@ extern int cpu_feature;
|
|||
extern int cpu_id;
|
||||
extern char cpu_vendor[];
|
||||
extern int cpuid_level;
|
||||
extern struct cpu_nocpuid_nameclass i386_nocpuid_cpus[];
|
||||
extern struct cpu_cpuid_nameclass i386_cpuid_cpus[];
|
||||
extern const struct cpu_nocpuid_nameclass i386_nocpuid_cpus[];
|
||||
extern const struct cpu_cpuid_nameclass i386_cpuid_cpus[];
|
||||
|
||||
/* machdep.c */
|
||||
void delay __P((int));
|
||||
|
|
Loading…
Reference in New Issue