/* SPDX-License-Identifier: GPL-2.0-only */1/*2* purgatory: Runs between two kernels3*4* Copyright (C) 2022 Huawei Technologies Co, Ltd.5*6* Author: Li Zhengyu ([email protected])7*8*/9#include <asm/asm.h>10#include <linux/linkage.h>1112.text1314.align 215SYM_CODE_START(purgatory_start)1617lla sp, .Lstack18mv s0, a0 /* The hartid of the current hart */19mv s1, a1 /* Phys address of the FDT image */2021jal purgatory2223/* Start new image. */24mv a0, s025mv a1, s126ld a2, riscv_kernel_entry27jr a228SYM_CODE_END(purgatory_start)2930.align 431.rept 25632.quad 033.endr34.Lstack:3536.data3738.align LGREG39SYM_DATA(riscv_kernel_entry, .quad 0)4041.end424344