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

source code of linux/arch/mips/loongson64/sleeper.S