Source-Changes-HG archive

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

[src/trunk]: src/sys/arch #define away pmap_update() in <machine/pmap.h> so t...



details:   https://anonhg.NetBSD.org/src/rev/9f94acb77240
branches:  trunk
changeset: 508905:9f94acb77240
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Apr 21 23:51:14 2001 +0000

description:
#define away pmap_update() in <machine/pmap.h> so that no function
call overhead is incurred as we start sprinkling pmap_update() calls
throughout the source tree (no pmaps currently defer operations, but
we are adding the infrastructure to allow them to do so).

diffstat:

 sys/arch/alpha/alpha/pmap.c     |   6 ++++--
 sys/arch/alpha/include/pmap.h   |   4 +++-
 sys/arch/amiga/amiga/pmap.c     |  15 +--------------
 sys/arch/amiga/include/pmap.h   |   4 +++-
 sys/arch/atari/atari/pmap.c     |  11 -----------
 sys/arch/atari/include/pmap.h   |   4 +++-
 sys/arch/hp300/hp300/pmap.c     |  16 +---------------
 sys/arch/hp300/include/pmap.h   |   4 +++-
 sys/arch/luna68k/include/pmap.h |   4 +++-
 sys/arch/luna68k/luna68k/pmap.c |  16 +---------------
 sys/arch/mac68k/include/pmap.h  |   4 +++-
 sys/arch/mac68k/mac68k/pmap.c   |  16 +---------------
 sys/arch/mips/include/pmap.h    |   4 +++-
 sys/arch/mips/mips/pmap.c       |  22 ++--------------------
 sys/arch/mvme68k/include/pmap.h |   4 +++-
 sys/arch/mvme68k/mvme68k/pmap.c |  16 +---------------
 sys/arch/news68k/include/pmap.h |   4 +++-
 sys/arch/news68k/news68k/pmap.c |  16 +---------------
 sys/arch/next68k/include/pmap.h |   4 +++-
 sys/arch/next68k/next68k/pmap.c |  17 +----------------
 sys/arch/powerpc/include/pmap.h |   3 ++-
 sys/arch/powerpc/powerpc/pmap.c |  11 +----------
 sys/arch/sparc/include/pmap.h   |   4 ++--
 sys/arch/sparc/sparc/pmap.c     |  11 +----------
 sys/arch/sparc64/include/pmap.h |   3 ++-
 sys/arch/sparc64/sparc64/pmap.c |  11 +----------
 sys/arch/sun2/include/pmap.h    |   4 +++-
 sys/arch/sun2/sun2/pmap.c       |  15 +--------------
 sys/arch/sun3/include/pmap3.h   |   4 +++-
 sys/arch/sun3/include/pmap3x.h  |   4 +++-
 sys/arch/sun3/sun3/pmap.c       |  15 +--------------
 sys/arch/sun3/sun3x/pmap.c      |  14 +-------------
 sys/arch/x68k/include/pmap.h    |   4 +++-
 sys/arch/x68k/x68k/pmap.c       |  16 +---------------
 34 files changed, 68 insertions(+), 242 deletions(-)

diffs (truncated from 803 to 300 lines):

diff -r a0239828addb -r 9f94acb77240 sys/arch/alpha/alpha/pmap.c
--- a/sys/arch/alpha/alpha/pmap.c       Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/alpha/alpha/pmap.c       Sat Apr 21 23:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.160 2001/04/21 16:27:10 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.161 2001/04/21 23:51:14 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -154,7 +154,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.160 2001/04/21 16:27:10 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.161 2001/04/21 23:51:14 thorpej Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2266,6 +2266,7 @@
 #endif
 }
 
+#if 0 /* defined away in <machine/pmap.h> */
 /*
  * pmap_update:                        [ INTERFACE ]
  *
@@ -2286,6 +2287,7 @@
         * Nothing to do; this pmap module does not defer any operations.
         */
 }
+#endif /* 0 */
 
 /*
  * pmap_collect:               [ INTERFACE ]
diff -r a0239828addb -r 9f94acb77240 sys/arch/alpha/include/pmap.h
--- a/sys/arch/alpha/include/pmap.h     Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/alpha/include/pmap.h     Sat Apr 21 23:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.39 2001/04/20 16:22:35 thorpej Exp $ */
+/* $NetBSD: pmap.h,v 1.40 2001/04/21 23:51:14 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -207,6 +207,8 @@
 #define        pmap_resident_count(pmap)       ((pmap)->pm_stats.resident_count)
 #define        pmap_wired_count(pmap)          ((pmap)->pm_stats.wired_count)
 
+#define        pmap_update()                   /* nothing (yet) */
+
 extern pt_entry_t *VPT;                /* Virtual Page Table */
 
 #define        PMAP_STEAL_MEMORY               /* enable pmap_steal_memory() */
diff -r a0239828addb -r 9f94acb77240 sys/arch/amiga/amiga/pmap.c
--- a/sys/arch/amiga/amiga/pmap.c       Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/amiga/amiga/pmap.c       Sat Apr 21 23:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.84 2001/04/21 17:25:01 thorpej Exp $        */
+/*     $NetBSD: pmap.c,v 1.85 2001/04/21 23:51:15 thorpej Exp $        */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -1543,19 +1543,6 @@
 }
 
 /*
- *     Require that all active physical maps contain no
- *     incorrect entries NOW.
- *
- *     Generally used to insure that a thread about
- *     to run will see a semantically correct world.
- */
-void pmap_update()
-{
-
-       /* Nothing (yet) */
-}
-
-/*
  *     Routine:        pmap_collect
  *     Function:
  *             Garbage collects the physical map system for
diff -r a0239828addb -r 9f94acb77240 sys/arch/amiga/include/pmap.h
--- a/sys/arch/amiga/include/pmap.h     Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/amiga/include/pmap.h     Sat Apr 21 23:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.27 1999/06/19 19:44:08 is Exp $     */
+/*     $NetBSD: pmap.h,v 1.28 2001/04/21 23:51:15 thorpej Exp $        */
 
 /* 
  * Copyright (c) 1987 Carnegie-Mellon University
@@ -136,6 +136,8 @@
 #define        pmap_resident_count(pmap)       ((pmap)->pm_stats.resident_count)
 #define        pmap_wired_count(pmap)          ((pmap)->pm_stats.wired_count)
 
+#define        pmap_update()                   /* nothing (yet) */
+
 vaddr_t                pmap_map __P((vaddr_t, paddr_t, paddr_t, int));
 void           pmap_procwr __P((struct proc *, vaddr_t, u_long));
 #define                PMAP_NEED_PROCWR
diff -r a0239828addb -r 9f94acb77240 sys/arch/atari/atari/pmap.c
--- a/sys/arch/atari/atari/pmap.c       Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/atari/atari/pmap.c       Sat Apr 21 23:51:14 2001 +0000
@@ -1494,17 +1494,6 @@
 }
 
 /*
- *     Require that all active physical maps contain no
- *     incorrect entries NOW.
- *
- *     Generally used to insure that a thread about
- *     to run will see a semantically correct world.
- */
-void pmap_update()
-{
-}
-
-/*
  *     Routine:        pmap_collect
  *     Function:
  *             Garbage collects the physical map system for
diff -r a0239828addb -r 9f94acb77240 sys/arch/atari/include/pmap.h
--- a/sys/arch/atari/include/pmap.h     Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/atari/include/pmap.h     Sat Apr 21 23:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.21 2000/09/28 09:09:28 is Exp $     */
+/*     $NetBSD: pmap.h,v 1.22 2001/04/21 23:51:16 thorpej Exp $        */
 
 /* 
  * Copyright (c) 1987 Carnegie-Mellon University
@@ -153,6 +153,8 @@
 #define        pmap_resident_count(pmap)       ((pmap)->pm_stats.resident_count)
 #define        pmap_wired_count(pmap)          ((pmap)->pm_stats.wired_count)
 
+#define        pmap_update()                   /* nothing (yet) */
+
 #define        active_user_pmap(pm) \
        (curproc && \
         (pm) != pmap_kernel() && (pm) == curproc->p_vmspace->vm_map.pmap)
diff -r a0239828addb -r 9f94acb77240 sys/arch/hp300/hp300/pmap.c
--- a/sys/arch/hp300/hp300/pmap.c       Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/hp300/hp300/pmap.c       Sat Apr 21 23:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.89 2001/04/21 17:25:03 thorpej Exp $        */
+/*     $NetBSD: pmap.c,v 1.90 2001/04/21 23:51:16 thorpej Exp $        */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -1576,20 +1576,6 @@
 }
 
 /*
- * pmap_update:
- *
- *     Require that all active physical maps contain no
- *     incorrect entires NOW, by processing any deferred
- *     pmap operations.
- */
-void
-pmap_update()
-{
-
-       PMAP_DPRINTF(PDB_FOLLOW, ("pmap_update()\n"));
-}
-
-/*
  * pmap_collect:               [ INTERFACE ]
  *
  *     Garbage collects the physical map system for pages which are no
diff -r a0239828addb -r 9f94acb77240 sys/arch/hp300/include/pmap.h
--- a/sys/arch/hp300/include/pmap.h     Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/hp300/include/pmap.h     Sat Apr 21 23:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.25 1999/02/25 22:34:41 is Exp $     */
+/*     $NetBSD: pmap.h,v 1.26 2001/04/21 23:51:16 thorpej Exp $        */
 
 /* 
  * Copyright (c) 1987 Carnegie-Mellon University
@@ -147,6 +147,8 @@
 #define        pmap_resident_count(pmap)       ((pmap)->pm_stats.resident_count)
 #define        pmap_wired_count(pmap)          ((pmap)->pm_stats.wired_count)
 
+#define        pmap_update()                   /* nothing (yet) */
+
 extern pt_entry_t      *Sysmap;
 extern char            *vmmap;         /* map for mem, dumps, etc. */
 
diff -r a0239828addb -r 9f94acb77240 sys/arch/luna68k/include/pmap.h
--- a/sys/arch/luna68k/include/pmap.h   Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/luna68k/include/pmap.h   Sat Apr 21 23:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.1 2000/01/05 08:48:58 nisimura Exp $        */
+/*     $NetBSD: pmap.h,v 1.2 2001/04/21 23:51:16 thorpej Exp $ */
 
 /* 
  * Copyright (c) 1987 Carnegie-Mellon University
@@ -138,6 +138,8 @@
 #define        pmap_resident_count(pmap)       ((pmap)->pm_stats.resident_count)
 #define        pmap_wired_count(pmap)          ((pmap)->pm_stats.wired_count)
 
+#define        pmap_update()                   /* nothing (yet) */
+
 extern pt_entry_t      *Sysmap;
 extern char            *vmmap;         /* map for mem, dumps, etc. */
 
diff -r a0239828addb -r 9f94acb77240 sys/arch/luna68k/luna68k/pmap.c
--- a/sys/arch/luna68k/luna68k/pmap.c   Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/luna68k/luna68k/pmap.c   Sat Apr 21 23:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.9 2001/04/21 17:25:03 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.10 2001/04/21 23:51:17 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -1424,20 +1424,6 @@
 }
 
 /*
- * pmap_update:
- *
- *     Require that all active physical maps contain no
- *     incorrect entires NOW, by processing any deferred
- *     pmap operations.
- */
-void
-pmap_update()
-{
-
-       PMAP_DPRINTF(PDB_FOLLOW, ("pmap_update()\n"));
-}
-
-/*
  * pmap_collect:               [ INTERFACE ]
  *
  *     Garbage collects the physical map system for pages which are no
diff -r a0239828addb -r 9f94acb77240 sys/arch/mac68k/include/pmap.h
--- a/sys/arch/mac68k/include/pmap.h    Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/mac68k/include/pmap.h    Sat Apr 21 23:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.27 1999/11/28 10:36:56 scottr Exp $ */
+/*     $NetBSD: pmap.h,v 1.28 2001/04/21 23:51:17 thorpej Exp $        */
 
 /*
  * Copyright (c) 1987 Carnegie-Mellon University
@@ -181,6 +181,8 @@
 #define        pmap_resident_count(pmap)       ((pmap)->pm_stats.resident_count)
 #define        pmap_wired_count(pmap)          ((pmap)->pm_stats.wired_count)
 
+#define        pmap_update()                   /* nothing (yet) */
+
 extern pt_entry_t *Sysmap;
 extern char *vmmap;                    /* map for mem, dumps, etc. */
 
diff -r a0239828addb -r 9f94acb77240 sys/arch/mac68k/mac68k/pmap.c
--- a/sys/arch/mac68k/mac68k/pmap.c     Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/mac68k/mac68k/pmap.c     Sat Apr 21 23:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.72 2001/04/21 17:25:04 thorpej Exp $        */
+/*     $NetBSD: pmap.c,v 1.73 2001/04/21 23:51:17 thorpej Exp $        */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -1449,20 +1449,6 @@
 }
 
 /*
- * pmap_update:
- *
- *     Require that all active physical maps contain no
- *     incorrect entires NOW, by processing any deferred
- *     pmap operations.
- */
-void
-pmap_update()
-{
-
-       PMAP_DPRINTF(PDB_FOLLOW, ("pmap_update()\n"));
-}
-
-/*
  * pmap_collect:               [ INTERFACE ]
  *
  *     Garbage collects the physical map system for pages which are no
diff -r a0239828addb -r 9f94acb77240 sys/arch/mips/include/pmap.h
--- a/sys/arch/mips/include/pmap.h      Sat Apr 21 23:11:30 2001 +0000
+++ b/sys/arch/mips/include/pmap.h      Sat Apr 21 23:51:14 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.30 2000/12/25 08:56:12 nisimura Exp $       */
+/*     $NetBSD: pmap.h,v 1.31 2001/04/21 23:51:17 thorpej Exp $        */
 
 /*
  * Copyright (c) 1987 Carnegie-Mellon University
@@ -116,6 +116,8 @@
 #define        pmap_wired_count(pmap)  ((pmap)->pm_stats.wired_count)
 #define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
 
+#define        pmap_update()           /* nothing (yet) */
+
 /*
  *     Bootstrap the system enough to run with virtual memory.
  */



Home | Main Index | Thread Index | Old Index