Skip to content

Commit

Permalink
x86_64: fix regression
Browse files Browse the repository at this point in the history
This commit fixes the regression from apache#13768

Signed-off-by: hujun5 <hujun5@xiaomi.com>
  • Loading branch information
hujun260 committed Oct 8, 2024
1 parent 77821fb commit ac1ab8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86_64/src/intel64/intel64_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ac1ab8e

Please sign in to comment.