mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 23:28:29 +08:00
x86_64: fix regression
This commit fixes the regression from https://github.com/apache/nuttx/pull/13768 Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
@@ -157,7 +157,7 @@ void up_schedule_sigaction(struct tcb_s *tcb)
|
||||
*/
|
||||
|
||||
tcb->xcp.regs[REG_RIP] = (uint64_t)x86_64_sigdeliver;
|
||||
tcb->xcp.regs[REG_RIP] = tcb->xcp.regs[REG_RIP] - 8;
|
||||
tcb->xcp.regs[REG_RSP] = tcb->xcp.regs[REG_RSP] - 8;
|
||||
tcb->xcp.regs[REG_RFLAGS] = 0;
|
||||
}
|
||||
}
|
||||
@@ -219,7 +219,7 @@ void up_schedule_sigaction(struct tcb_s *tcb)
|
||||
*/
|
||||
|
||||
up_current_regs()[REG_RIP] = (uint64_t)x86_64_sigdeliver;
|
||||
up_current_regs()[REG_RIP] = up_current_regs()[REG_RIP] - 8;
|
||||
up_current_regs()[REG_RSP] = up_current_regs()[REG_RSP] - 8;
|
||||
up_current_regs()[REG_RFLAGS] = 0;
|
||||
|
||||
/* And make sure that the saved context in the TCB
|
||||
|
||||
Reference in New Issue
Block a user