arch/x68_64: properly align ap boot stack for vector operations

Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
This commit is contained in:
liwenxiang1 2024-10-09 16:46:19 +08:00 committed by Xiang Xiao
parent b4c4cbc28b
commit 5e15fff58a

View file

@ -398,6 +398,13 @@ ap_start:
/* Jump to ap_start routine */
movabs $x86_64_ap_boot, %rbx
/* We need to simulate the behavior of the call instruction, which by
* default pushes 8 bytes of the RIP. Otherwise, the function's stack
* won't be 16-byte aligned.
*/
pushq $0
jmp *%rbx
#endif