@@ -40,7 +40,7 @@ DEFINE_COMPILERRT_PRIVATE_FUNCTION(do_abort)
40
40
.cfi_offset w30 , - 24
41
41
.cfi_offset w29 , - 32
42
42
.cfi_offset 46 , - 16
43
- bl __arm_sme_state
43
+ bl SYMBOL_NAME( __arm_sme_state)
44
44
tbz x0 , # 0 , 2f
45
45
1 :
46
46
smstop sm
@@ -54,7 +54,7 @@ END_COMPILERRT_FUNCTION(do_abort)
54
54
// __arm_sme_state fills the result registers based on a local
55
55
// th at is set as part of the compiler - rt startup code.
56
56
// __aarch64_has_sme_and_tpidr2_el0
57
- DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED (__arm_sme_state)
57
+ DEFINE_COMPILERRT_FUNCTION (__arm_sme_state)
58
58
.variant_pcs __arm_sme_state
59
59
BTI_C
60
60
mov x0 , xzr
@@ -70,9 +70,9 @@ DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(__arm_sme_state)
70
70
mrs x1 , TPIDR2_EL0
71
71
1 :
72
72
ret
73
- END_COMPILERRT_OUTLINE_FUNCTION (__arm_sme_state)
73
+ END_COMPILERRT_FUNCTION (__arm_sme_state)
74
74
75
- DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED (__arm_tpidr2_restore)
75
+ DEFINE_COMPILERRT_FUNCTION (__arm_tpidr2_restore)
76
76
.variant_pcs __arm_tpidr2_restore
77
77
BTI_C
78
78
// If TPIDR2_EL0 is nonnull , the subroutine aborts in some platform - specific
@@ -106,9 +106,9 @@ DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(__arm_tpidr2_restore)
106
106
ret
107
107
2 :
108
108
b SYMBOL_NAME(do_abort)
109
- END_COMPILERRT_OUTLINE_FUNCTION (__arm_tpidr2_restore)
109
+ END_COMPILERRT_FUNCTION (__arm_tpidr2_restore)
110
110
111
- DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED (__arm_tpidr2_save)
111
+ DEFINE_COMPILERRT_FUNCTION (__arm_tpidr2_save)
112
112
.variant_pcs __arm_tpidr2_save
113
113
BTI_C
114
114
// If the current thread does not have access to TPIDR2_EL0 , the subroutine
@@ -147,9 +147,10 @@ DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(__arm_tpidr2_save)
147
147
ret
148
148
2 :
149
149
b SYMBOL_NAME(do_abort)
150
- END_COMPILERRT_OUTLINE_FUNCTION (__arm_tpidr2_save)
150
+ END_COMPILERRT_FUNCTION (__arm_tpidr2_save)
151
151
152
- DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(__arm_za_disable)
152
+ DEFINE_COMPILERRT_FUNCTION(__arm_za_disable)
153
+ .cfi_startproc
153
154
.variant_pcs __arm_za_disable
154
155
BTI_C
155
156
// If the current thread does not have access to SME , the subroutine does
@@ -166,7 +167,7 @@ DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(__arm_za_disable)
166
167
.cfi_def_cfa w29 , 16
167
168
.cfi_offset w30 , - 8
168
169
.cfi_offset w29 , - 16
169
- bl __arm_tpidr2_save
170
+ bl SYMBOL_NAME( __arm_tpidr2_save)
170
171
171
172
// * Set TPIDR2_EL0 to null.
172
173
msr TPIDR2_EL0 , xzr
@@ -181,9 +182,10 @@ DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(__arm_za_disable)
181
182
.cfi_restore w29
182
183
0 :
183
184
ret
184
- END_COMPILERRT_OUTLINE_FUNCTION(__arm_za_disable)
185
+ .cfi_endproc
186
+ END_COMPILERRT_FUNCTION(__arm_za_disable)
185
187
186
- DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED (__arm_get_current_vg)
188
+ DEFINE_COMPILERRT_FUNCTION (__arm_get_current_vg)
187
189
.variant_pcs __arm_get_current_vg
188
190
BTI_C
189
191
@@ -200,7 +202,7 @@ DEFINE_COMPILERRT_OUTLINE_FUNCTION_UNMANGLED(__arm_get_current_vg)
200
202
2 :
201
203
mov x0 , xzr
202
204
ret
203
- END_COMPILERRT_OUTLINE_FUNCTION (__arm_get_current_vg)
205
+ END_COMPILERRT_FUNCTION (__arm_get_current_vg)
204
206
205
207
NO_EXEC_STACK_DIRECTIVE
206
208
0 commit comments