summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/x86/sipi_vector.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cpu/x86/sipi_vector.S b/src/cpu/x86/sipi_vector.S
index 61d9e34466..02ad0d367a 100644
--- a/src/cpu/x86/sipi_vector.S
+++ b/src/cpu/x86/sipi_vector.S
@@ -84,10 +84,9 @@ _start:
mov idt_ptr, %ebx
lidt (%ebx)
- /* Obtain CPU number. */
- movl ap_count, %eax
1:
- movl %eax, %ecx
+ /* Obtain CPU number. */
+ movl ap_count, %ecx
inc %ecx
lock cmpxchg %ecx, ap_count
jnz 1b