^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef __ASM_SH_ALIGNMENT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define __ASM_SH_ALIGNMENT_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) extern void inc_unaligned_byte_access(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) extern void inc_unaligned_word_access(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) extern void inc_unaligned_dword_access(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) extern void inc_unaligned_multi_access(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) extern void inc_unaligned_user_access(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) extern void inc_unaligned_kernel_access(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #define UM_WARN (1 << 0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define UM_FIXUP (1 << 1)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define UM_SIGNAL (1 << 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) extern unsigned int unaligned_user_action(void);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) extern void unaligned_fixups_notify(struct task_struct *, insn_size_t, struct pt_regs *);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #endif /* __ASM_SH_ALIGNMENT_H */