Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2011 18:52:49 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r224378 - in stable/8/sys/sparc64: include sparc64
Message-ID:  <201107251852.p6PIqnnt071765@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Mon Jul 25 18:52:49 2011
New Revision: 224378
URL: http://svn.freebsd.org/changeset/base/224378

Log:
  MFC: r223800
  
  - pmap_cache_remove() and pmap_protect_tte() are only used within pmap.c
    so static'ize them.
  - Correct a typo.

Modified:
  stable/8/sys/sparc64/include/pmap.h
  stable/8/sys/sparc64/sparc64/pmap.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/geom/label/   (props changed)

Modified: stable/8/sys/sparc64/include/pmap.h
==============================================================================
--- stable/8/sys/sparc64/include/pmap.h	Mon Jul 25 18:46:56 2011	(r224377)
+++ stable/8/sys/sparc64/include/pmap.h	Mon Jul 25 18:52:49 2011	(r224378)
@@ -89,12 +89,9 @@ void	pmap_kremove_flags(vm_offset_t va);
 boolean_t pmap_page_is_mapped(vm_page_t m);
 
 int	pmap_cache_enter(vm_page_t m, vm_offset_t va);
-void	pmap_cache_remove(vm_page_t m, vm_offset_t va);
 
 int	pmap_remove_tte(struct pmap *pm1, struct pmap *pm2, struct tte *tp,
 			vm_offset_t va);
-int	pmap_protect_tte(struct pmap *pm1, struct pmap *pm2, struct tte *tp,
-			 vm_offset_t va);
 
 void	pmap_map_tsb(void);
 void	pmap_set_kctx(void);

Modified: stable/8/sys/sparc64/sparc64/pmap.c
==============================================================================
--- stable/8/sys/sparc64/sparc64/pmap.c	Mon Jul 25 18:46:56 2011	(r224377)
+++ stable/8/sys/sparc64/sparc64/pmap.c	Mon Jul 25 18:52:49 2011	(r224378)
@@ -152,6 +152,9 @@ struct pmap kernel_pmap_store;
 static vm_paddr_t pmap_bootstrap_alloc(vm_size_t size, uint32_t colors);
 
 static void pmap_bootstrap_set_tte(struct tte *tp, u_long vpn, u_long data);
+static void pmap_cache_remove(vm_page_t m, vm_offset_t va);
+static int pmap_protect_tte(struct pmap *pm1, struct pmap *pm2,
+    struct tte *tp, vm_offset_t va);
 
 /*
  * Map the given physical page at the specified virtual address in the
@@ -952,7 +955,7 @@ pmap_cache_enter(vm_page_t m, vm_offset_
 	return (0);
 }
 
-void
+static void
 pmap_cache_remove(vm_page_t m, vm_offset_t va)
 {
 	struct tte *tp;
@@ -1414,7 +1417,7 @@ pmap_remove_all(vm_page_t m)
 	vm_page_flag_clear(m, PG_WRITEABLE);
 }
 
-int
+static int
 pmap_protect_tte(struct pmap *pm, struct pmap *pm2, struct tte *tp,
     vm_offset_t va)
 {
@@ -1971,7 +1974,7 @@ pmap_page_wired_mappings(vm_page_t m)
 
 /*
  * Remove all pages from specified address space, this aids process exit
- * speeds.  This is much faster than pmap_remove n the case of running down
+ * speeds.  This is much faster than pmap_remove in the case of running down
  * an entire address space.  Only works for the current pmap.
  */
 void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107251852.p6PIqnnt071765>