projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de658bc
)
riscv: hibernation: Replace jalr with jr before suspend_restore_regs
author
Song Shuai
<suagrfillet@gmail.com>
Fri, 19 May 2023 06:08:54 +0000
(14:08 +0800)
committer
Palmer Dabbelt
<palmer@rivosinc.com>
Mon, 19 Jun 2023 16:27:56 +0000
(09:27 -0700)
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>
arch/riscv/kernel/hibernate-asm.S
patch
|
blob
|
history
diff --git
a/arch/riscv/kernel/hibernate-asm.S
b/arch/riscv/kernel/hibernate-asm.S
index
effaf5c
..
5c76671
100644
(file)
--- 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
- j
alr
a1
+ j
r
a1
END(hibernate_restore_image)
/*
@@
-73,5
+73,5
@@
ENTRY(hibernate_core_restore_code)
REG_L s4, HIBERN_PBE_NEXT(s4)
bnez s4, .Lcopy
- j
alr
s2
+ j
r
s2
END(hibernate_core_restore_code)