Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386 make i386_nocpuid_cpus[] and i386_cpuid_cpus[]...



details:   https://anonhg.NetBSD.org/src/rev/f6dc55bea668
branches:  trunk
changeset: 499306:f6dc55bea668
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu Nov 16 17:00:17 2000 +0000

description:
make i386_nocpuid_cpus[] and i386_cpuid_cpus[] const - this pushes
another ~1.4KB to text section

diffstat:

 sys/arch/i386/i386/machdep.c |  8 ++++----
 sys/arch/i386/include/cpu.h  |  6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (56 lines):

diff -r 56e9834e757e -r f6dc55bea668 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Thu Nov 16 15:02:46 2000 +0000
+++ b/sys/arch/i386/i386/machdep.c      Thu Nov 16 17:00:17 2000 +0000
@@ -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 @@
  * 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 @@
        ""
 };
 
-struct cpu_cpuid_nameclass i386_cpuid_cpus[] = {
+const struct cpu_cpuid_nameclass i386_cpuid_cpus[] = {
        {
                "GenuineIntel",
                CPUVENDOR_INTEL,
@@ -878,7 +878,7 @@
        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) {
diff -r 56e9834e757e -r f6dc55bea668 sys/arch/i386/include/cpu.h
--- a/sys/arch/i386/include/cpu.h       Thu Nov 16 15:02:46 2000 +0000
+++ b/sys/arch/i386/include/cpu.h       Thu Nov 16 17:00:17 2000 +0000
@@ -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_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));



Home | Main Index | Thread Index | Old Index