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 INDIRECT_THUNK(reg) extern asmlinkage void __x86_indirect_thunk_e ## reg(void);
23 #define INDIRECT_THUNK(reg) extern asmlinkage void __x86_indirect_thunk_r ## reg(void);
40 #endif /* CONFIG_RETPOLINE */