@@ -40,36 +40,6 @@ SYM_FUNC_END(__x86_indirect_thunk_\reg)
40
40
41
41
.endm
42
42
43
- /*
44
- * This generates .altinstr_replacement symbols for use by objtool. They,
45
- * however, must not actually live in .altinstr_replacement since that will be
46
- * discarded after init, but module alternatives will also reference these
47
- * symbols.
48
- *
49
- * Their names matches the "__x86_indirect_" prefix to mark them as retpolines.
50
- */
51
- .macro ALT_THUNK reg
52
-
53
- .align 1
54
-
55
- SYM_FUNC_START_NOALIGN(__x86_indirect_alt_call_\reg)
56
- ANNOTATE_RETPOLINE_SAFE
57
- 1: call *%\reg
58
- 2: .skip 5 -(2b-1b), 0x90
59
- SYM_FUNC_END(__x86_indirect_alt_call_\reg)
60
-
61
- STACK_FRAME_NON_STANDARD(__x86_indirect_alt_call_\reg)
62
-
63
- SYM_FUNC_START_NOALIGN(__x86_indirect_alt_jmp_\reg)
64
- ANNOTATE_RETPOLINE_SAFE
65
- 1: jmp *%\reg
66
- 2: .skip 5 -(2b-1b), 0x90
67
- SYM_FUNC_END(__x86_indirect_alt_jmp_\reg)
68
-
69
- STACK_FRAME_NON_STANDARD(__x86_indirect_alt_jmp_\reg)
70
-
71
- .endm
72
-
73
43
/*
74
44
* Despite being an assembler file we can't just use .irp here
75
45
* because __KSYM_DEPS__ only uses the C preprocessor and would
@@ -92,15 +62,3 @@ STACK_FRAME_NON_STANDARD(__x86_indirect_alt_jmp_\reg)
92
62
#undef GEN
93
63
#define GEN(reg) EXPORT_THUNK(reg)
94
64
#include <asm/GEN-for-each-reg.h>
95
-
96
- #undef GEN
97
- #define GEN(reg) ALT_THUNK reg
98
- #include <asm/GEN-for-each-reg.h>
99
-
100
- #undef GEN
101
- #define GEN(reg) __EXPORT_THUNK(__x86_indirect_alt_call_ ## reg)
102
- #include <asm/GEN-for-each-reg.h>
103
-
104
- #undef GEN
105
- #define GEN(reg) __EXPORT_THUNK(__x86_indirect_alt_jmp_ ## reg)
106
- #include <asm/GEN-for-each-reg.h>
0 commit comments