1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * purgatory: Runs between two kernels
5 * Copyright (C) 2022 Huawei Technologies Co, Ltd.
7 * Author: Li Zhengyu (lizhengyu3@huawei.com)
10 #include <linux/linkage.h>
14 SYM_CODE_START(purgatory_start)
17 mv s0, a0 /* The hartid of the current hart */
18 mv s1, a1 /* Phys address of the FDT image */
22 /* Start new image. */
25 ld a2, riscv_kernel_entry
27 SYM_CODE_END(purgatory_start)
37 SYM_DATA(riscv_kernel_entry, .quad 0)