2019-10-18 06:00:17 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 SiFive, Inc.
|
|
|
|
*/
|
|
|
|
#ifndef __ASM_HEAD_H
|
|
|
|
#define __ASM_HEAD_H
|
|
|
|
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#include <linux/init.h>
|
|
|
|
|
|
|
|
extern atomic_t hart_lottery;
|
|
|
|
|
|
|
|
asmlinkage void do_page_fault(struct pt_regs *regs);
|
|
|
|
asmlinkage void __init setup_vm(uintptr_t dtb_pa);
|
2021-04-13 14:35:14 +08:00
|
|
|
#ifdef CONFIG_XIP_KERNEL
|
|
|
|
asmlinkage void __init __copy_data(void);
|
|
|
|
#endif
|
2019-10-18 06:00:17 +08:00
|
|
|
|
2022-01-20 17:09:17 +08:00
|
|
|
#ifdef CONFIG_RISCV_BOOT_SPINWAIT
|
2022-01-20 17:09:15 +08:00
|
|
|
extern void *__cpu_spinwait_stack_pointer[];
|
|
|
|
extern void *__cpu_spinwait_task_pointer[];
|
2022-01-20 17:09:17 +08:00
|
|
|
#endif
|
2019-10-18 06:00:17 +08:00
|
|
|
|
|
|
|
#endif /* __ASM_HEAD_H */
|