Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Mar 2015 21:39:43 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r280794 - head/sys/powerpc/booke
Message-ID:  <201503282139.t2SLdhjw073690@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhibbits
Date: Sat Mar 28 21:39:42 2015
New Revision: 280794
URL: https://svnweb.freebsd.org/changeset/base/280794

Log:
  Wrap #ifdef guards around pmap_bootstrap ap.  It's only used in SMP, and
  building without SMP causes a build failure.
  
  MFC after:	1 month

Modified:
  head/sys/powerpc/booke/pmap.c

Modified: head/sys/powerpc/booke/pmap.c
==============================================================================
--- head/sys/powerpc/booke/pmap.c	Sat Mar 28 21:28:22 2015	(r280793)
+++ head/sys/powerpc/booke/pmap.c	Sat Mar 28 21:39:42 2015	(r280794)
@@ -262,7 +262,9 @@ static vm_offset_t ptbl_buf_pool_vabase;
 /* Pointer to ptbl_buf structures. */
 static struct ptbl_buf *ptbl_bufs;
 
+#ifdef SMP
 void pmap_bootstrap_ap(volatile uint32_t *);
+#endif
 
 /*
  * Kernel MMU interface
@@ -1329,6 +1331,7 @@ mmu_booke_bootstrap(mmu_t mmu, vm_offset
 	debugf("mmu_booke_bootstrap: exit\n");
 }
 
+#ifdef SMP
 void
 pmap_bootstrap_ap(volatile uint32_t *trcp __unused)
 {
@@ -1349,6 +1352,7 @@ pmap_bootstrap_ap(volatile uint32_t *trc
 
 	set_mas4_defaults();
 }
+#endif
 
 /*
  * Get the physical page address for the given pmap/virtual address.



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