mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
335819fd5b
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>
22 lines
405 B
ArmAsm
22 lines
405 B
ArmAsm
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2024, Jiaxun Yang <jiaxun.yang@flygoat.com>
|
|
* Loongson EFI firmware sleeper routine
|
|
*/
|
|
|
|
#include <asm/asm.h>
|
|
#include <asm/pm.h>
|
|
|
|
#include <kernel-entry-init.h>
|
|
|
|
LEAF(loongson_lefi_sleep)
|
|
SUSPEND_SAVE
|
|
move t9, a0
|
|
PTR_LA a0, wake
|
|
move a1, sp
|
|
jalr t9
|
|
wake:
|
|
smp_slave_setup
|
|
RESUME_RESTORE_REGS_RETURN
|
|
END(loongson_lefi_sleep)
|