booke pmap.c bugfix
Aleksander Dutkowski
aleek at FreeBSD.org
Wed Jan 16 11:29:43 UTC 2013
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
More information about the freebsd-ppc
mailing list