]>
git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blob - arch/riscv/include/asm/asm-prototypes.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_RISCV_PROTOTYPES_H
3 #define _ASM_RISCV_PROTOTYPES_H
5 #include <linux/ftrace.h>
6 #include <asm-generic/asm-prototypes.h>
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
);
13 #define DECLARE_DO_ERROR_INFO(name) asmlinkage void name(struct pt_regs *regs)
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
);
28 #endif /* _ASM_RISCV_PROTOTYPES_H */