summaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/hibernate-asm.S
diff options
context:
space:
mode:
authorSong Shuai <suagrfillet@gmail.com>2023-05-19 14:08:54 +0800
committerPalmer Dabbelt <palmer@rivosinc.com>2023-06-19 09:27:56 -0700
commit650ea2a1dd964ca0a9c55f68dcb614d359c6b7d7 (patch)
treea23de620fc18f0b2e45616f89a95a9003589f163 /arch/riscv/kernel/hibernate-asm.S
parentde658bcf03339561572e5dad3ec8ecedd1256747 (diff)
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 <suagrfillet@gmail.com> Reviewed-by: JeeHeng Sia <jeeheng.sia@starfivetech.com > Link: https://lore.kernel.org/r/20230519060854.214138-1-suagrfillet@gmail.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/kernel/hibernate-asm.S')
-rw-r--r--arch/riscv/kernel/hibernate-asm.S4
1 files 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)