summaryrefslogtreecommitdiff
path: root/src/cpu/x86/lapic/secondary.S
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2012-07-05 06:30:29 +0300
committerSven Schnelle <svens@stackframe.org>2012-07-05 22:47:43 +0200
commit9a663f3e97fff9cfc3eb9ed2c6e843a68bcabf90 (patch)
tree5aae9d2dcc7e64b0c4ae521dc2cd1196878e07f9 /src/cpu/x86/lapic/secondary.S
parent5458b9d90a246833de55e0814f0c323a0cf6e471 (diff)
downloadcoreboot-9a663f3e97fff9cfc3eb9ed2c6e843a68bcabf90.tar.xz
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>
Diffstat (limited to 'src/cpu/x86/lapic/secondary.S')
-rw-r--r--src/cpu/x86/lapic/secondary.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpu/x86/lapic/secondary.S b/src/cpu/x86/lapic/secondary.S
index 67e44c46df..2ad70296ea 100644
--- a/src/cpu/x86/lapic/secondary.S
+++ b/src/cpu/x86/lapic/secondary.S
@@ -41,8 +41,8 @@ _secondary_start:
/* increment our cpu index */
movl $1, %eax
lock xadd %eax, cpucount
- incl %eax
movl %eax, %ecx
+ incl %eax
/* assign stack for this specific cpu */
mov _stack, %esp