Skip to content

Commit 335819f

Browse files
FlyGoattsbogend
authored andcommitted
MIPS: Loongson64: sleeper: Pass ra and sp as arguments
Some firmware implementations require restoring ra and sp to be passed as arguments. Passing them as necessary. Fixes: 68557c5 ("MIPS: Loongson64: Implement PM suspend for LEFI firmware") Signed-off-by: Jiaxun Yang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 4e7ca0b commit 335819f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

arch/mips/loongson64/sleeper.S

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111

1212
LEAF(loongson_lefi_sleep)
1313
SUSPEND_SAVE
14-
jalr a0
15-
smp_slave_setup
14+
move t9, a0
15+
PTR_LA a0, wake
16+
move a1, sp
17+
jalr t9
18+
wake:
19+
smp_slave_setup
1620
RESUME_RESTORE_REGS_RETURN
1721
END(loongson_lefi_sleep)

0 commit comments

Comments
 (0)