Explorar o código

x86: Pass correct cpu_index to ap_init()

In sipi_vector.S, cpu_index (passed as %eax) is wrongly overwritten
by the ap_init() function address. Correct it.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Bin Meng %!s(int64=9) %!d(string=hai) anos
pai
achega
ef1683d5c3
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      arch/x86/cpu/sipi_vector.S

+ 2 - 2
arch/x86/cpu/sipi_vector.S

@@ -190,8 +190,8 @@ load_msr:
 
 	/* c_handler(cpu_num) */
 	movl	%esi, %eax	/* cpu_num */
-	mov	c_handler, %eax
-	call	*%eax
+	mov	c_handler, %esi
+	call	*%esi
 
 	.align	4
 .globl	sipi_params