blob: 726731ada5349c3e5cc58765ce5d94dae0edfb58 [file] [log] [blame]
Paul Walmsleyffaee272019-10-17 15:00:17 -07001/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2019 SiFive, Inc.
4 */
5#ifndef __ASM_HEAD_H
6#define __ASM_HEAD_H
7
8#include <linux/linkage.h>
9#include <linux/init.h>
10
11extern atomic_t hart_lottery;
12
13asmlinkage void do_page_fault(struct pt_regs *regs);
14asmlinkage void __init setup_vm(uintptr_t dtb_pa);
Vitaly Wool44c92252021-04-13 02:35:14 -040015#ifdef CONFIG_XIP_KERNEL
16asmlinkage void __init __copy_data(void);
17#endif
Paul Walmsleyffaee272019-10-17 15:00:17 -070018
Atish Patra2ffc48f2022-01-20 01:09:17 -080019#ifdef CONFIG_RISCV_BOOT_SPINWAIT
Atish Patrac78f94f2022-01-20 01:09:15 -080020extern void *__cpu_spinwait_stack_pointer[];
21extern void *__cpu_spinwait_task_pointer[];
Atish Patra2ffc48f2022-01-20 01:09:17 -080022#endif
Paul Walmsleyffaee272019-10-17 15:00:17 -070023
Paul Walmsleyffaee272019-10-17 15:00:17 -070024#endif /* __ASM_HEAD_H */