xref: /linux/arch/mips/loongson64/sleeper.S (revision 36ec807b627b4c0a0a382f0ae48eac7187d14b2b)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 *  Copyright (C) 2024, Jiaxun Yang <jiaxun.yang@flygoat.com>
4 *  Loongson EFI firmware sleeper routine
5 */
6
7#include <asm/asm.h>
8#include <asm/pm.h>
9
10#include <kernel-entry-init.h>
11
12LEAF(loongson_lefi_sleep)
13	SUSPEND_SAVE
14	move	t9, a0
15	PTR_LA	a0, wake
16	move	a1, sp
17	jalr    t9
18wake:
19	smp_slave_setup
20	RESUME_RESTORE_REGS_RETURN
21END(loongson_lefi_sleep)
22