Skip to content

Commit

Permalink
openrisc: Use delay slot for clone and fork wrappers
Browse files Browse the repository at this point in the history
This saves one instruction.

Signed-off-by: Stafford Horne <[email protected]>
  • Loading branch information
stffrdhrn committed Dec 4, 2021
1 parent 840b66c commit 07baf50
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/openrisc/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -1162,15 +1162,13 @@ _fork_save_extra_regs_and_call:

ENTRY(__sys_clone)
l.movhi r29,hi(sys_clone)
l.ori r29,r29,lo(sys_clone)
l.j _fork_save_extra_regs_and_call
l.nop
l.ori r29,r29,lo(sys_clone)

ENTRY(__sys_fork)
l.movhi r29,hi(sys_fork)
l.ori r29,r29,lo(sys_fork)
l.j _fork_save_extra_regs_and_call
l.nop
l.ori r29,r29,lo(sys_fork)

ENTRY(sys_rt_sigreturn)
l.jal _sys_rt_sigreturn
Expand Down

0 comments on commit 07baf50

Please sign in to comment.