diff options
author | cognet <cognet@FreeBSD.org> | 2013-02-26 19:58:49 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2013-02-26 19:58:49 +0000 |
commit | 6376afdd72905ec01bc3af03881d18f0940137bc (patch) | |
tree | 67d69991b9eeefdfd6cf9d5923557143f32e6dba /sys | |
parent | 8ef4aa5bd21ae8102697ecd2da0df25171c19c55 (diff) | |
download | FreeBSD-src-6376afdd72905ec01bc3af03881d18f0940137bc.zip FreeBSD-src-6376afdd72905ec01bc3af03881d18f0940137bc.tar.gz |
Don't forget to init the VFP stuff for all cores.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arm/arm/mp_machdep.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/arm/arm/mp_machdep.c b/sys/arm/arm/mp_machdep.c index 30e6b63..6337b9c 100644 --- a/sys/arm/arm/mp_machdep.c +++ b/sys/arm/arm/mp_machdep.c @@ -49,6 +49,9 @@ __FBSDID("$FreeBSD$"); #include <machine/pte.h> #include <machine/intr.h> #include <machine/vmparam.h> +#ifdef ARM_VFP_SUPPORT +#include <machine/vfp.h> +#endif #include "opt_smp.h" @@ -181,6 +184,11 @@ init_secondary(int cpu) KASSERT(PCPU_GET(idlethread) != NULL, ("no idle thread")); pc->pc_curthread = pc->pc_idlethread; pc->pc_curpcb = pc->pc_idlethread->td_pcb; +#ifdef ARM_VFP_SUPPORT + pc->pc_cpu = cpu; + + vfp_init(); +#endif mtx_lock_spin(&ap_boot_mtx); |