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)
11 #include <linux/linkage.h>
15 SYM_CODE_START(purgatory_start)
18 mv s0, a0 /* The hartid of the current hart */
19 mv s1, a1 /* Phys address of the FDT image */
23 /* Start new image. */
26 ld a2, riscv_kernel_entry
28 SYM_CODE_END(purgatory_start)
39 SYM_DATA(riscv_kernel_entry, .quad 0)