xref: /linux/arch/riscv/include/asm/entry-common.h (revision 0678df8271820bcf8fb4f877129f05d68a237de4)
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