Commit 650ea2a1 authored by Song Shuai's avatar Song Shuai Committed by Palmer Dabbelt

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: default avatarSong Shuai <suagrfillet@gmail.com>
Reviewed-by: JeeHeng Sia <jeeheng.sia@starfivetech.com >
Link: https://lore.kernel.org/r/20230519060854.214138-1-suagrfillet@gmail.comSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent de658bcf
...@@ -50,7 +50,7 @@ ENTRY(hibernate_restore_image) ...@@ -50,7 +50,7 @@ ENTRY(hibernate_restore_image)
REG_L s4, restore_pblist REG_L s4, restore_pblist
REG_L a1, relocated_restore_code REG_L a1, relocated_restore_code
jalr a1 jr a1
END(hibernate_restore_image) END(hibernate_restore_image)
/* /*
...@@ -73,5 +73,5 @@ ENTRY(hibernate_core_restore_code) ...@@ -73,5 +73,5 @@ ENTRY(hibernate_core_restore_code)
REG_L s4, HIBERN_PBE_NEXT(s4) REG_L s4, HIBERN_PBE_NEXT(s4)
bnez s4, .Lcopy bnez s4, .Lcopy
jalr s2 jr s2
END(hibernate_core_restore_code) END(hibernate_core_restore_code)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment