Date: Wed, 16 Jan 2013 12:29:42 +0100 From: Aleksander Dutkowski <aleek@FreeBSD.org> To: freebsd-ppc@freebsd.org Subject: booke pmap.c bugfix Message-ID: <CABkKHSYe3D2oJ7UhPLEJ6BxJ-OVTHd698yU1VRauHz93sg7Hxw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
hello! Every occurence of variable bp_ntlbls is in #ifdef SMP macro. The only pmap_bootstrap_ap function call is also in #ifdef SMP macro. So the definition and declaration of function pmap_bootstrap_ap should also be in this macro, otherwise, complation crashes without option SMP diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c index f6e5f9c..f30e99d 100644 --- a/sys/powerpc/booke/pmap.c +++ b/sys/powerpc/booke/pmap.c @@ -264,7 +264,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 @@ -1271,7 +1273,7 @@ mmu_booke_bootstrap(mmu_t mmu, vm_offset_t start, vm_offset_t kernelend) debugf("mmu_booke_bootstrap: exit\n"); } - +#ifdef SMP void pmap_bootstrap_ap(volatile uint32_t *trcp __unused) { @@ -1292,6 +1294,7 @@ pmap_bootstrap_ap(volatile uint32_t *trcp __unused) set_mas4_defaults(); } +#endif /* * Get the physical page address for the given pmap/virtual address. -- regards aleek
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABkKHSYe3D2oJ7UhPLEJ6BxJ-OVTHd698yU1VRauHz93sg7Hxw>