xref: /linux/arch/riscv/include/asm/entry-common.h (revision 3d0fe49454652117522f60bfbefb978ba0e5300b)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef _ASM_RISCV_ENTRY_COMMON_H
4 #define _ASM_RISCV_ENTRY_COMMON_H
5 
6 #include <asm/stacktrace.h>
7 
8 void handle_page_fault(struct pt_regs *regs);
9 void handle_break(struct pt_regs *regs);
10 
11 #ifdef CONFIG_RISCV_MISALIGNED
12 int handle_misaligned_load(struct pt_regs *regs);
13 int handle_misaligned_store(struct pt_regs *regs);
14 #else
15 static inline int handle_misaligned_load(struct pt_regs *regs)
16 {
17 	return -1;
18 }
19 static inline int handle_misaligned_store(struct pt_regs *regs)
20 {
21 	return -1;
22 }
23 #endif
24 
25 #endif /* _ASM_RISCV_ENTRY_COMMON_H */
26