mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] riscv: hibernation: Replace jalr with jr before suspend_restore_regs
@ 2023-05-19  6:08 Song Shuai
  2023-05-19 10:51 ` JeeHeng Sia
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Song Shuai @ 2023-05-19  6:08 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, jeeheng.sia, mason.huo, conor.dooley
  Cc: linux-riscv, linux-kernel, Song Shuai

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 <suagrfillet@gmail.com>
---
 arch/riscv/kernel/hibernate-asm.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/riscv/kernel/hibernate-asm.S b/arch/riscv/kernel/hibernate-asm.S
index effaf5ca5da0..5c76671c7e15 100644
--- a/arch/riscv/kernel/hibernate-asm.S
+++ b/arch/riscv/kernel/hibernate-asm.S
@@ -50,7 +50,7 @@ ENTRY(hibernate_restore_image)
 	REG_L	s4, restore_pblist
 	REG_L	a1, relocated_restore_code
 
-	jalr	a1
+	jr	a1
 END(hibernate_restore_image)
 
 /*
@@ -73,5 +73,5 @@ ENTRY(hibernate_core_restore_code)
 	REG_L	s4, HIBERN_PBE_NEXT(s4)
 	bnez	s4, .Lcopy
 
-	jalr	s2
+	jr	s2
 END(hibernate_core_restore_code)
-- 
2.20.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-20  1:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-19  6:08 [PATCH] riscv: hibernation: Replace jalr with jr before suspend_restore_regs Song Shuai
2023-05-19 10:51 ` JeeHeng Sia
2023-05-22  1:12   ` JeeHeng Sia
2023-06-19 22:07 ` Palmer Dabbelt
2023-06-20  1:00 ` patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®