Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jan 2010 17:34:45 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r201751 - in head/sys/i386: i386 include xen
Message-ID:  <201001071734.o07HYjIr018386@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: alc
Date: Thu Jan  7 17:34:45 2010
New Revision: 201751
URL: http://svn.freebsd.org/changeset/base/201751

Log:
  Make pmap_set_pg() static.

Modified:
  head/sys/i386/i386/pmap.c
  head/sys/i386/include/pmap.h
  head/sys/i386/xen/pmap.c

Modified: head/sys/i386/i386/pmap.c
==============================================================================
--- head/sys/i386/i386/pmap.c	Thu Jan  7 16:52:00 2010	(r201750)
+++ head/sys/i386/i386/pmap.c	Thu Jan  7 17:34:45 2010	(r201751)
@@ -321,6 +321,7 @@ static vm_offset_t pmap_kmem_choose(vm_o
 #ifdef PAE
 static void *pmap_pdpt_allocf(uma_zone_t zone, int bytes, u_int8_t *flags, int wait);
 #endif
+static void pmap_set_pg(void);
 
 CTASSERT(1 << PDESHIFT == sizeof(pd_entry_t));
 CTASSERT(1 << PTESHIFT == sizeof(pt_entry_t));
@@ -548,7 +549,7 @@ pmap_init_pat(void)
 /*
  * Set PG_G on kernel pages.  Only the BSP calls this when SMP is turned on.
  */
-void
+static void
 pmap_set_pg(void)
 {
 	pd_entry_t pdir;

Modified: head/sys/i386/include/pmap.h
==============================================================================
--- head/sys/i386/include/pmap.h	Thu Jan  7 16:52:00 2010	(r201750)
+++ head/sys/i386/include/pmap.h	Thu Jan  7 17:34:45 2010	(r201751)
@@ -480,7 +480,6 @@ boolean_t pmap_page_is_mapped(vm_page_t 
 void	pmap_page_set_memattr(vm_page_t m, vm_memattr_t ma);
 void	pmap_unmapdev(vm_offset_t, vm_size_t);
 pt_entry_t *pmap_pte(pmap_t, vm_offset_t) __pure2;
-void	pmap_set_pg(void);
 void	pmap_invalidate_page(pmap_t, vm_offset_t);
 void	pmap_invalidate_range(pmap_t, vm_offset_t, vm_offset_t);
 void	pmap_invalidate_all(pmap_t);

Modified: head/sys/i386/xen/pmap.c
==============================================================================
--- head/sys/i386/xen/pmap.c	Thu Jan  7 16:52:00 2010	(r201750)
+++ head/sys/i386/xen/pmap.c	Thu Jan  7 17:34:45 2010	(r201751)
@@ -318,6 +318,7 @@ static __inline void pagezero(void *page
 #if defined(PAE) && !defined(XEN)
 static void *pmap_pdpt_allocf(uma_zone_t zone, int bytes, u_int8_t *flags, int wait);
 #endif
+static void pmap_set_pg(void);
 
 CTASSERT(1 << PDESHIFT == sizeof(pd_entry_t));
 CTASSERT(1 << PTESHIFT == sizeof(pt_entry_t));
@@ -552,7 +553,7 @@ pmap_init_pat(void)
 /*
  * Set PG_G on kernel pages.  Only the BSP calls this when SMP is turned on.
  */
-void
+static void
 pmap_set_pg(void)
 {
 	pd_entry_t pdir;



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