On Thu, Sep 18, 2008 at 09:49:34PM +0800, Michael.Kang wrote:
> And jump to __secondary_start -> call_setup_cpu,  source code in
> call_setup_cpu as the following:
> 112 _GLOBAL(call_setup_cpu)
> 113         addis   r4,r3,[EMAIL PROTECTED]
> 114         addi    r4,r4,[EMAIL PROTECTED]
> 115         lwz     r4,0(r4)
> 116         add     r4,r4,r3
> 117         lwz     r5,CPU_SPEC_SETUP(r4)
> 118         cmpwi   0,r5,0
> 119         add     r5,r5,r3
> 120         beqlr
> 121         mtctr   r5
> 122         bctr
> 
> here it seems cur_cpu_spec here is not a valid value since
> cur_cpu_spec will only be set in identify_cpu() [
> arch/powerpc/kernel/cputable.c: 1301] later.
> 
> So what is my mistake? Who responsible for initialize cur_cpu_spec
> variable for second core??

There is only one cur_cpu_spec for all cores, which is initialized by the
boot core before it releases the secondaries.

-Scott
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Reply via email to