From: Bin Meng Date: Wed, 14 Oct 2015 09:01:21 +0000 (-0700) Subject: x86: Pass correct cpu_index to ap_init() X-Git-Tag: v2016.01-rc1~298^2~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ef1683d5c36d4906eefd802863ddf4798c0f2a31;p=oweals%2Fu-boot.git 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 Acked-by: Simon Glass --- diff --git a/arch/x86/cpu/sipi_vector.S b/arch/x86/cpu/sipi_vector.S index bcef12c6f1..0c4a157f38 100644 --- a/arch/x86/cpu/sipi_vector.S +++ b/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