Skip to content

Commit 650ea2a

Browse files
Song Shuaipalmer-dabbelt
authored andcommitted
riscv: hibernation: Replace jalr with jr before suspend_restore_regs
No need to link the x1/ra reg via jalr before suspend_restore_regs So it's better to replace jalr with jr. Signed-off-by: Song Shuai <[email protected]> Reviewed-by: JeeHeng Sia <[email protected] > Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent de658bc commit 650ea2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/riscv/kernel/hibernate-asm.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ENTRY(hibernate_restore_image)
5050
REG_L s4, restore_pblist
5151
REG_L a1, relocated_restore_code
5252

53-
jalr a1
53+
jr a1
5454
END(hibernate_restore_image)
5555

5656
/*
@@ -73,5 +73,5 @@ ENTRY(hibernate_core_restore_code)
7373
REG_L s4, HIBERN_PBE_NEXT(s4)
7474
bnez s4, .Lcopy
7575

76-
jalr s2
76+
jr s2
7777
END(hibernate_core_restore_code)

0 commit comments

Comments
 (0)