mp_machdep.c (254025) | mp_machdep.c (254461) |
---|---|
1/*- 2 * Copyright (c) 2011 Semihalf. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2011 Semihalf. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 10 unchanged lines hidden (view full) --- 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: head/sys/arm/arm/mp_machdep.c 254025 2013-08-07 06:21:20Z jeff $"); | 27__FBSDID("$FreeBSD: head/sys/arm/arm/mp_machdep.c 254461 2013-08-17 18:51:38Z andrew $"); |
28#include <sys/param.h> 29#include <sys/systm.h> 30#include <sys/bus.h> 31#include <sys/kernel.h> 32#include <sys/lock.h> 33#include <sys/mutex.h> 34#include <sys/proc.h> 35#include <sys/pcpu.h> --- 8 unchanged lines hidden (view full) --- 44#include <vm/pmap.h> 45 46#include <machine/cpu.h> 47#include <machine/smp.h> 48#include <machine/pcb.h> 49#include <machine/pte.h> 50#include <machine/intr.h> 51#include <machine/vmparam.h> | 28#include <sys/param.h> 29#include <sys/systm.h> 30#include <sys/bus.h> 31#include <sys/kernel.h> 32#include <sys/lock.h> 33#include <sys/mutex.h> 34#include <sys/proc.h> 35#include <sys/pcpu.h> --- 8 unchanged lines hidden (view full) --- 44#include <vm/pmap.h> 45 46#include <machine/cpu.h> 47#include <machine/smp.h> 48#include <machine/pcb.h> 49#include <machine/pte.h> 50#include <machine/intr.h> 51#include <machine/vmparam.h> |
52#ifdef ARM_VFP_SUPPORT | 52#ifdef VFP |
53#include <machine/vfp.h> 54#endif 55 56#include "opt_smp.h" 57 58void *temp_pagetable; 59extern struct pcpu __pcpu[]; 60/* used to hold the AP's until we are ready to release them */ --- 133 unchanged lines hidden (view full) --- 194 /* Spin until the BSP releases the APs */ 195 while (!aps_ready) 196 ; 197 198 /* Initialize curthread */ 199 KASSERT(PCPU_GET(idlethread) != NULL, ("no idle thread")); 200 pc->pc_curthread = pc->pc_idlethread; 201 pc->pc_curpcb = pc->pc_idlethread->td_pcb; | 53#include <machine/vfp.h> 54#endif 55 56#include "opt_smp.h" 57 58void *temp_pagetable; 59extern struct pcpu __pcpu[]; 60/* used to hold the AP's until we are ready to release them */ --- 133 unchanged lines hidden (view full) --- 194 /* Spin until the BSP releases the APs */ 195 while (!aps_ready) 196 ; 197 198 /* Initialize curthread */ 199 KASSERT(PCPU_GET(idlethread) != NULL, ("no idle thread")); 200 pc->pc_curthread = pc->pc_idlethread; 201 pc->pc_curpcb = pc->pc_idlethread->td_pcb; |
202#ifdef ARM_VFP_SUPPORT | 202#ifdef VFP |
203 pc->pc_cpu = cpu; 204 205 vfp_init(); 206#endif 207 208 mtx_lock_spin(&ap_boot_mtx); 209 210 atomic_add_rel_32(&smp_cpus, 1); --- 206 unchanged lines hidden --- | 203 pc->pc_cpu = cpu; 204 205 vfp_init(); 206#endif 207 208 mtx_lock_spin(&ap_boot_mtx); 209 210 atomic_add_rel_32(&smp_cpus, 1); --- 206 unchanged lines hidden --- |