From 9a663f3e97fff9cfc3eb9ed2c6e843a68bcabf90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Thu, 5 Jul 2012 06:30:29 +0300 Subject: Fix the CPU index parameter passed to secondary_cpu_init(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Count 0,1,2,3,... instead of 0,2,3,4,... Change-Id: I3c6b85e5e71b32deac5470809e1618d28f19c00f Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/1173 Tested-by: build bot (Jenkins) Reviewed-by: Sven Schnelle --- src/cpu/x86/lapic/secondary.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3