arch/x68_64: properly align ap boot stack for vector operations
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
This commit is contained in:
parent
b4c4cbc28b
commit
5e15fff58a
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue