1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <asm/ftrace.h>
3 #include <linux/uaccess.h>
4 #include <asm/string.h>
6 #include <asm/checksum.h>
8 #include <asm-generic/asm-prototypes.h>
10 #include <asm/pgtable.h>
11 #include <asm/special_insns.h>
12 #include <asm/preempt.h>
15 #ifndef CONFIG_X86_CMPXCHG64
16 extern void cmpxchg8b_emu(void);
19 #ifdef CONFIG_RETPOLINE
21 #define DECL_INDIRECT_THUNK(reg) \
22 extern asmlinkage void __x86_indirect_thunk_ ## reg (void);
24 #define DECL_RETPOLINE(reg) \
25 extern asmlinkage void __x86_retpoline_ ## reg (void);
28 #define GEN(reg) DECL_INDIRECT_THUNK(reg)
29 #include <asm/GEN-for-each-reg.h>
32 #define GEN(reg) DECL_RETPOLINE(reg)
33 #include <asm/GEN-for-each-reg.h>
35 #endif /* CONFIG_RETPOLINE */