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 k6_mtrr_funcs, i686_mtrr_funcs and mtrr_f...



details:   https://anonhg.NetBSD.org/src/rev/f9328aa0c49e
branches:  trunk
changeset: 542834:f9328aa0c49e
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Feb 09 09:38:23 2003 +0000

description:
make k6_mtrr_funcs, i686_mtrr_funcs and mtrr_funcs const
remove extern definition for i686_mtrr_funcs from include/mtrr.h, it's
not used outside mtrr_i686.c

diffstat:

 sys/arch/i386/i386/mtrr_i686.c |  6 +++---
 sys/arch/i386/i386/mtrr_k6.c   |  6 +++---
 sys/arch/i386/include/mtrr.h   |  7 +++----
 3 files changed, 9 insertions(+), 10 deletions(-)

diffs (75 lines):

diff -r 4c89fad39099 -r f9328aa0c49e sys/arch/i386/i386/mtrr_i686.c
--- a/sys/arch/i386/i386/mtrr_i686.c    Sun Feb 09 09:28:21 2003 +0000
+++ b/sys/arch/i386/i386/mtrr_i686.c    Sun Feb 09 09:38:23 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mtrr_i686.c,v 1.6 2002/10/25 12:01:57 fvdl Exp $ */
+/*     $NetBSD: mtrr_i686.c,v 1.7 2003/02/09 09:38:23 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mtrr_i686.c,v 1.6 2002/10/25 12:01:57 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mtrr_i686.c,v 1.7 2003/02/09 09:38:23 jdolecek Exp $");
 
 #include "opt_multiprocessor.h"
 
@@ -113,7 +113,7 @@
 static struct mtrr *mtrr_fixed;
 static struct mtrr *mtrr_var;
 
-struct mtrr_funcs i686_mtrr_funcs = {
+const struct mtrr_funcs i686_mtrr_funcs = {
        i686_mtrr_init_cpu,
        i686_mtrr_reload_cpu,
        i686_mtrr_clean,
diff -r 4c89fad39099 -r f9328aa0c49e sys/arch/i386/i386/mtrr_k6.c
--- a/sys/arch/i386/i386/mtrr_k6.c      Sun Feb 09 09:28:21 2003 +0000
+++ b/sys/arch/i386/i386/mtrr_k6.c      Sun Feb 09 09:38:23 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mtrr_k6.c,v 1.5 2002/10/25 12:01:57 fvdl Exp $ */
+/*     $NetBSD: mtrr_k6.c,v 1.6 2003/02/09 09:38:23 jdolecek Exp $     */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mtrr_k6.c,v 1.5 2002/10/25 12:01:57 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mtrr_k6.c,v 1.6 2003/02/09 09:38:23 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -71,7 +71,7 @@
 
 static struct mtrr *mtrr_var;
 
-struct mtrr_funcs k6_mtrr_funcs = {
+const struct mtrr_funcs k6_mtrr_funcs = {
        k6_mtrr_init_cpu,
        k6_mtrr_reload_cpu,
        k6_mtrr_clean,
diff -r 4c89fad39099 -r f9328aa0c49e sys/arch/i386/include/mtrr.h
--- a/sys/arch/i386/include/mtrr.h      Sun Feb 09 09:28:21 2003 +0000
+++ b/sys/arch/i386/include/mtrr.h      Sun Feb 09 09:38:23 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mtrr.h,v 1.5 2002/10/01 12:57:07 fvdl Exp $ */
+/* $NetBSD: mtrr.h,v 1.6 2003/02/09 09:38:23 jdolecek Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -131,9 +131,8 @@
        void (*dump)(const char *tag);
 };
 
-extern struct mtrr_funcs i686_mtrr_funcs;
-extern struct mtrr_funcs k6_mtrr_funcs;
-extern struct mtrr_funcs *mtrr_funcs;
+extern const struct mtrr_funcs k6_mtrr_funcs;
+extern const struct mtrr_funcs *mtrr_funcs;
 
 #define mtrr_init_cpu(ci)      mtrr_funcs->init_cpu(ci)
 #define mtrr_reload_cpu(ci)    mtrr_funcs->reload_cpu(ci)



Home | Main Index | Thread Index | Old Index