svn commit: r221842 - projects/largeSMP/sys/sparc64/sparc64

Attilio Rao attilio at freebsd.org
Fri May 13 15:29:00 UTC 2011


2011/5/13 Marius Strobl <marius at freebsd.org>:
> Author: marius
> Date: Fri May 13 15:21:31 2011
> New Revision: 221842
> URL: http://svn.freebsd.org/changeset/base/221842
>
> Log:
>  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.
>
> Modified:
>  projects/largeSMP/sys/sparc64/sparc64/mp_machdep.c
>
> Modified: projects/largeSMP/sys/sparc64/sparc64/mp_machdep.c
> ==============================================================================
> --- projects/largeSMP/sys/sparc64/sparc64/mp_machdep.c  Fri May 13 15:20:57 2011        (r221841)
> +++ projects/largeSMP/sys/sparc64/sparc64/mp_machdep.c  Fri May 13 15:21:31 2011        (r221842)
> @@ -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);
>
>

How idiot can I be?
I watched that path like 10 times yesterday...

Thanks a lot.
Attilio


-- 
Peace can only be achieved by understanding - A. Einstein


More information about the svn-src-projects mailing list