diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2015-10-14 09:01:21 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-10-21 13:46:27 (GMT) |
commit | ef1683d5c36d4906eefd802863ddf4798c0f2a31 (patch) | |
tree | 82ea6cb2db186c1620574c98dadb721219b081db /arch/x86 | |
parent | 06f16c4148ea0dee3b9269051679c87e9a238431 (diff) | |
download | u-boot-ef1683d5c36d4906eefd802863ddf4798c0f2a31.tar.xz |
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>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/cpu/sipi_vector.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/cpu/sipi_vector.S b/arch/x86/cpu/sipi_vector.S index bcef12c..0c4a157 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 |