asm-prototypes.h (1040B)
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 8long long __lshrti3(long long a, int b); 9long long __ashrti3(long long a, int b); 10long long __ashlti3(long long a, int b); 11 12 13#define DECLARE_DO_ERROR_INFO(name) asmlinkage void name(struct pt_regs *regs) 14 15DECLARE_DO_ERROR_INFO(do_trap_unknown); 16DECLARE_DO_ERROR_INFO(do_trap_insn_misaligned); 17DECLARE_DO_ERROR_INFO(do_trap_insn_fault); 18DECLARE_DO_ERROR_INFO(do_trap_insn_illegal); 19DECLARE_DO_ERROR_INFO(do_trap_load_fault); 20DECLARE_DO_ERROR_INFO(do_trap_load_misaligned); 21DECLARE_DO_ERROR_INFO(do_trap_store_misaligned); 22DECLARE_DO_ERROR_INFO(do_trap_store_fault); 23DECLARE_DO_ERROR_INFO(do_trap_ecall_u); 24DECLARE_DO_ERROR_INFO(do_trap_ecall_s); 25DECLARE_DO_ERROR_INFO(do_trap_ecall_m); 26DECLARE_DO_ERROR_INFO(do_trap_break); 27 28asmlinkage unsigned long get_overflow_stack(void); 29asmlinkage void handle_bad_stack(struct pt_regs *regs); 30 31#endif /* _ASM_RISCV_PROTOTYPES_H */