]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
MIPS: Loongson64: sleeper: Pass ra and sp as arguments
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Fri, 14 Jun 2024 15:40:17 +0000 (16:40 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 21 Jun 2024 08:22:10 +0000 (10:22 +0200)
Some firmware implementations require restoring ra and sp to be
passed as arguments.

Passing them as necessary.

Fixes: 68557c59a550 ("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>
arch/mips/loongson64/sleeper.S

index 04874b9bf430b0bd0fe91cfa89bebe35f35d66b1..cf16877409e2f89d878bb96dd809ae056dd15428 100644 (file)
 
 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)