mirror of
https://github.com/apache/nuttx.git
synced 2026-09-08 01:46:35 +00:00
arch/x86_64/intel64/intel64_head.S: move initial RSP for AP cores below regs area
move initial RSP for AP cores below regs area. otherwise IDLE thread for AP cores can be corrupted XCP region now match regs allocation in up_initial_state() Signed-off-by: p-szafonimateusz <p-szafonimateusz@xiaomi.com>
This commit is contained in:
parent
192dde1b58
commit
bbea8dcefe
1 changed files with 4 additions and 0 deletions
|
|
@ -364,6 +364,10 @@ ap_start:
|
|||
add %rax, %rbx
|
||||
mov (%rbx), %rsp
|
||||
|
||||
/* Move initial RSP below IDLE TCB regs */
|
||||
sub $XCPTCONTEXT_SIZE, %rsp
|
||||
and $(~XCPTCONTEXT_SIZE), %rsp
|
||||
|
||||
/* Jump to ap_start routine */
|
||||
movabs $x86_64_ap_boot, %rbx
|
||||
jmp *%rbx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue