entry-common.h (c05a62c92516d7679c819f8a5177cf84c8668954) entry-common.h (d1703dc7bc8ec7adb91f5ceaf1556ff1ed212858)
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#include <asm/thread_info.h>
8#include <asm/vector.h>

--- 11 unchanged lines hidden (view full) ---

20 }
21}
22
23#define arch_exit_to_user_mode_prepare arch_exit_to_user_mode_prepare
24
25void handle_page_fault(struct pt_regs *regs);
26void handle_break(struct pt_regs *regs);
27
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#include <asm/thread_info.h>
8#include <asm/vector.h>

--- 11 unchanged lines hidden (view full) ---

20 }
21}
22
23#define arch_exit_to_user_mode_prepare arch_exit_to_user_mode_prepare
24
25void handle_page_fault(struct pt_regs *regs);
26void handle_break(struct pt_regs *regs);
27
28#ifdef CONFIG_RISCV_SCALAR_MISALIGNED
29int handle_misaligned_load(struct pt_regs *regs);
30int handle_misaligned_store(struct pt_regs *regs);
28int handle_misaligned_load(struct pt_regs *regs);
29int handle_misaligned_store(struct pt_regs *regs);
31#else
32static inline int handle_misaligned_load(struct pt_regs *regs)
33{
34 return -1;
35}
36static inline int handle_misaligned_store(struct pt_regs *regs)
37{
38 return -1;
39}
40#endif
41
42#endif /* _ASM_RISCV_ENTRY_COMMON_H */
30
31#endif /* _ASM_RISCV_ENTRY_COMMON_H */