]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
334bb773 | 2 | #include <asm/ftrace.h> |
7c0f6ba6 | 3 | #include <linux/uaccess.h> |
334bb773 AB |
4 | #include <asm/string.h> |
5 | #include <asm/page.h> | |
6 | #include <asm/checksum.h> | |
7 | ||
8 | #include <asm-generic/asm-prototypes.h> | |
9 | ||
334bb773 AB |
10 | #include <asm/pgtable.h> |
11 | #include <asm/special_insns.h> | |
12 | #include <asm/preempt.h> | |
76b04384 | 13 | #include <asm/asm.h> |
334bb773 AB |
14 | |
15 | #ifndef CONFIG_X86_CMPXCHG64 | |
16 | extern void cmpxchg8b_emu(void); | |
17 | #endif | |
76b04384 DW |
18 | |
19 | #ifdef CONFIG_RETPOLINE | |
ca3f0d80 PZ |
20 | |
21 | #define DECL_INDIRECT_THUNK(reg) \ | |
22 | extern asmlinkage void __x86_indirect_thunk_ ## reg (void); | |
23 | ||
cc1ac9c7 PZ |
24 | #define DECL_RETPOLINE(reg) \ |
25 | extern asmlinkage void __x86_retpoline_ ## reg (void); | |
26 | ||
ca3f0d80 PZ |
27 | #undef GEN |
28 | #define GEN(reg) DECL_INDIRECT_THUNK(reg) | |
29 | #include <asm/GEN-for-each-reg.h> | |
30 | ||
cc1ac9c7 PZ |
31 | #undef GEN |
32 | #define GEN(reg) DECL_RETPOLINE(reg) | |
33 | #include <asm/GEN-for-each-reg.h> | |
34 | ||
76b04384 | 35 | #endif /* CONFIG_RETPOLINE */ |