1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _ASM_RISCV_PROTOTYPES_H 3 #define _ASM_RISCV_PROTOTYPES_H 4 5 #include <linux/ftrace.h> 6 #include <asm-generic/asm-prototypes.h> 7 8 long long __lshrti3(long long a, int b); 9 long long __ashrti3(long long a, int b); 10 long long __ashlti3(long long a, int b); 11 12 13 #define DECLARE_DO_ERROR_INFO(name) asmlinkage void name(struct pt_regs *regs) 14 15 DECLARE_DO_ERROR_INFO(do_trap_unknown); 16 DECLARE_DO_ERROR_INFO(do_trap_insn_misaligned); 17 DECLARE_DO_ERROR_INFO(do_trap_insn_fault); 18 DECLARE_DO_ERROR_INFO(do_trap_insn_illegal); 19 DECLARE_DO_ERROR_INFO(do_trap_load_fault); 20 DECLARE_DO_ERROR_INFO(do_trap_load_misaligned); 21 DECLARE_DO_ERROR_INFO(do_trap_store_misaligned); 22 DECLARE_DO_ERROR_INFO(do_trap_store_fault); 23 DECLARE_DO_ERROR_INFO(do_trap_ecall_u); 24 DECLARE_DO_ERROR_INFO(do_trap_ecall_s); 25 DECLARE_DO_ERROR_INFO(do_trap_ecall_m); 26 DECLARE_DO_ERROR_INFO(do_trap_break); 27 28 asmlinkage unsigned long get_overflow_stack(void); 29 asmlinkage void handle_bad_stack(struct pt_regs *regs); 30 31 #endif /* _ASM_RISCV_PROTOTYPES_H */ 32