Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
MIPS: Loongson64: sleeper: Pass ra and sp as arguments
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
FlyGoat authored and tsbogend committed Jun 21, 2024
1 parent 4e7ca0b commit 335819f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/mips/loongson64/sleeper.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@

LEAF(loongson_lefi_sleep)
SUSPEND_SAVE
jalr a0
smp_slave_setup
move t9, a0
PTR_LA a0, wake
move a1, sp
jalr t9
wake:
smp_slave_setup
RESUME_RESTORE_REGS_RETURN
END(loongson_lefi_sleep)

0 comments on commit 335819f

Please sign in to comment.