Skip to content

Commit

Permalink
x86_64: align some code
Browse files Browse the repository at this point in the history
Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 committed Oct 12, 2024
1 parent 2c50914 commit f867384
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arch/x86_64/src/intel64/intel64_schedulesigaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ void up_schedule_sigaction(struct tcb_s *tcb)
* have been delivered.
*/

tcb->xcp.saved_rip = up_current_regs()[REG_RIP];
tcb->xcp.saved_rsp = up_current_regs()[REG_RSP];
tcb->xcp.saved_rflags = up_current_regs()[REG_RFLAGS];
tcb->xcp.saved_rip = up_current_regs()[REG_RIP];
tcb->xcp.saved_rsp = up_current_regs()[REG_RSP];
tcb->xcp.saved_rflags = up_current_regs()[REG_RFLAGS];

/* Then set up to vector to the trampoline with interrupts
* disabled
Expand Down Expand Up @@ -210,9 +210,9 @@ void up_schedule_sigaction(struct tcb_s *tcb)
* the signals have been delivered.
*/

tcb->xcp.saved_rip = up_current_regs()[REG_RIP];
tcb->xcp.saved_rsp = up_current_regs()[REG_RSP];
tcb->xcp.saved_rflags = up_current_regs()[REG_RFLAGS];
tcb->xcp.saved_rip = up_current_regs()[REG_RIP];
tcb->xcp.saved_rsp = up_current_regs()[REG_RSP];
tcb->xcp.saved_rflags = up_current_regs()[REG_RFLAGS];

/* Then set up to vector to the trampoline with interrupts
* disabled
Expand Down

0 comments on commit f867384

Please sign in to comment.