mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 13:27:01 +08:00
arch/x68_64: properly align ap boot stack for vector operations
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
This commit is contained in:
@@ -398,6 +398,13 @@ ap_start:
|
|||||||
|
|
||||||
/* Jump to ap_start routine */
|
/* Jump to ap_start routine */
|
||||||
movabs $x86_64_ap_boot, %rbx
|
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
|
jmp *%rbx
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user