Fix the CPU index parameter passed to secondary_cpu_init().
Count 0,1,2,3,... instead of 0,2,3,4,... Change-Id: I3c6b85e5e71b32deac5470809e1618d28f19c00f Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/1173 Tested-by: build bot (Jenkins) Reviewed-by: Sven Schnelle <svens@stackframe.org>
This commit is contained in:
parent
5458b9d90a
commit
9a663f3e97
|
@ -41,8 +41,8 @@ _secondary_start:
|
||||||
/* increment our cpu index */
|
/* increment our cpu index */
|
||||||
movl $1, %eax
|
movl $1, %eax
|
||||||
lock xadd %eax, cpucount
|
lock xadd %eax, cpucount
|
||||||
incl %eax
|
|
||||||
movl %eax, %ecx
|
movl %eax, %ecx
|
||||||
|
incl %eax
|
||||||
|
|
||||||
/* assign stack for this specific cpu */
|
/* assign stack for this specific cpu */
|
||||||
mov _stack, %esp
|
mov _stack, %esp
|
||||||
|
|
Loading…
Reference in New Issue