summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2011-05-13 15:21:31 +0000
committermarius <marius@FreeBSD.org>2011-05-13 15:21:31 +0000
commitf85a68226d2be0976168e6991b49816dba73e975 (patch)
treea0d25dbc2e5156d3868e7eb9d924f44a8a177771 /sys/sparc64
parentd62a193525b7f197ac10cb251e579ab064483b92 (diff)
downloadFreeBSD-src-f85a68226d2be0976168e6991b49816dba73e975.zip
FreeBSD-src-f85a68226d2be0976168e6991b49816dba73e975.tar.gz
When setting up pc_other_cpus for APs based on pc_allcpu clear pc_cpuid
in the former rather than the latter. This gets this branch working on at least Jalapeno-class CPUs.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/mp_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/mp_machdep.c b/sys/sparc64/sparc64/mp_machdep.c
index 59deb9d..a314eb0 100644
--- a/sys/sparc64/sparc64/mp_machdep.c
+++ b/sys/sparc64/sparc64/mp_machdep.c
@@ -470,7 +470,7 @@ cpu_mp_bootstrap(struct pcpu *pc)
smp_cpus++;
KASSERT(curthread != NULL, ("%s: curthread", __func__));
ocpus = all_cpus;
- CPU_CLR(curcpu, &all_cpus);
+ CPU_CLR(curcpu, &ocpus);
PCPU_SET(other_cpus, ocpus);
printf("SMP: AP CPU #%d Launched!\n", curcpu);
OpenPOWER on IntegriCloud