Paul Walmsley | ffaee27 | 2019-10-17 15:00:17 -0700 | [diff] [blame] | 1 | /* 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 | |
| 11 | extern atomic_t hart_lottery; |
| 12 | |
| 13 | asmlinkage void do_page_fault(struct pt_regs *regs); |
| 14 | asmlinkage void __init setup_vm(uintptr_t dtb_pa); |
Vitaly Wool | 44c9225 | 2021-04-13 02:35:14 -0400 | [diff] [blame] | 15 | #ifdef CONFIG_XIP_KERNEL |
| 16 | asmlinkage void __init __copy_data(void); |
| 17 | #endif |
Paul Walmsley | ffaee27 | 2019-10-17 15:00:17 -0700 | [diff] [blame] | 18 | |
Atish Patra | 2ffc48f | 2022-01-20 01:09:17 -0800 | [diff] [blame] | 19 | #ifdef CONFIG_RISCV_BOOT_SPINWAIT |
Atish Patra | c78f94f | 2022-01-20 01:09:15 -0800 | [diff] [blame] | 20 | extern void *__cpu_spinwait_stack_pointer[]; |
| 21 | extern void *__cpu_spinwait_task_pointer[]; |
Atish Patra | 2ffc48f | 2022-01-20 01:09:17 -0800 | [diff] [blame] | 22 | #endif |
Paul Walmsley | ffaee27 | 2019-10-17 15:00:17 -0700 | [diff] [blame] | 23 | |
Paul Walmsley | ffaee27 | 2019-10-17 15:00:17 -0700 | [diff] [blame] | 24 | #endif /* __ASM_HEAD_H */ |