mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-04 04:02:26 +00:00
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: 68557c59a5
("MIPS: Loongson64: Implement PM suspend for LEFI firmware")
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
parent
4e7ca0b57f
commit
335819fd5b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user