asm-extable.h (03ab8e6297acd1bc0eedaa050e2a1635c576fd11) asm-extable.h (de658bcf03339561572e5dad3ec8ecedd1256747)
1/* SPDX-License-Identifier: GPL-2.0-only */
2#ifndef __ASM_ASM_EXTABLE_H
3#define __ASM_ASM_EXTABLE_H
4
5#define EX_TYPE_NONE 0
6#define EX_TYPE_FIXUP 1
7#define EX_TYPE_BPF 2
8#define EX_TYPE_UACCESS_ERR_ZERO 3
9
1/* SPDX-License-Identifier: GPL-2.0-only */
2#ifndef __ASM_ASM_EXTABLE_H
3#define __ASM_ASM_EXTABLE_H
4
5#define EX_TYPE_NONE 0
6#define EX_TYPE_FIXUP 1
7#define EX_TYPE_BPF 2
8#define EX_TYPE_UACCESS_ERR_ZERO 3
9
10#ifdef CONFIG_MMU
11
10#ifdef __ASSEMBLY__
11
12#define __ASM_EXTABLE_RAW(insn, fixup, type, data) \
13 .pushsection __ex_table, "a"; \
14 .balign 4; \
15 .long ((insn) - .); \
16 .long ((fixup) - .); \
17 .short (type); \

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

57 EX_DATA_REG(ZERO, zero) \
58 ")")
59
60#define _ASM_EXTABLE_UACCESS_ERR(insn, fixup, err) \
61 _ASM_EXTABLE_UACCESS_ERR_ZERO(insn, fixup, err, zero)
62
63#endif /* __ASSEMBLY__ */
64
12#ifdef __ASSEMBLY__
13
14#define __ASM_EXTABLE_RAW(insn, fixup, type, data) \
15 .pushsection __ex_table, "a"; \
16 .balign 4; \
17 .long ((insn) - .); \
18 .long ((fixup) - .); \
19 .short (type); \

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

59 EX_DATA_REG(ZERO, zero) \
60 ")")
61
62#define _ASM_EXTABLE_UACCESS_ERR(insn, fixup, err) \
63 _ASM_EXTABLE_UACCESS_ERR_ZERO(insn, fixup, err, zero)
64
65#endif /* __ASSEMBLY__ */
66
67#else /* CONFIG_MMU */
68 #define _ASM_EXTABLE_UACCESS_ERR(insn, fixup, err)
69#endif /* CONFIG_MMU */
70
65#endif /* __ASM_ASM_EXTABLE_H */
71#endif /* __ASM_ASM_EXTABLE_H */