Lines Matching +full:name +full:-
1 /* SPDX-License-Identifier: GPL-2.0 */
33 #define SYSCALL_ALIAS(alias, name) asm( \ argument
36 __stringify(name))
54 * The argument stack may be owned by the assembly-language
64 /* Assembly files may be compiled with -traditional .. */
78 /* SYM_T_FUNC -- type used by assembler to mark functions */
83 /* SYM_T_OBJECT -- type used by assembler to mark data */
88 /* SYM_T_NONE -- type used by assembler to mark entries of unknown type */
93 /* SYM_A_* -- align the symbol? */
97 /* SYM_L_* -- linkage of symbols */
98 #define SYM_L_GLOBAL(name) .globl name argument
99 #define SYM_L_WEAK(name) .weak name argument
100 #define SYM_L_LOCAL(name) /* nothing */ argument
111 #define GLOBAL(name) \ argument
112 .globl name ASM_NL \
113 name:
118 #define ENTRY(name) \ argument
119 SYM_FUNC_START(name)
127 #define WEAK(name) \ argument
128 SYM_FUNC_START_WEAK(name)
133 #define END(name) \ argument
134 .size name, .-name
137 /* If symbol 'name' is treated as a subroutine (gets called, and returns)
138 * then please use ENDPROC to mark 'name' as STT_FUNC for the benefit of
143 #define ENDPROC(name) \ argument
144 SYM_FUNC_END(name)
150 /* SYM_ENTRY -- use only if you have to for non-paired symbols */
152 #define SYM_ENTRY(name, linkage, align...) \ argument
153 linkage(name) ASM_NL \
155 name:
158 /* SYM_START -- use only if you have to */
160 #define SYM_START(name, linkage, align...) \ argument
161 SYM_ENTRY(name, linkage, align)
164 /* SYM_END -- use only if you have to */
166 #define SYM_END(name, sym_type) \ argument
167 .type name sym_type ASM_NL \
168 .set .L__sym_size_##name, .-name ASM_NL \
169 .size name, .L__sym_size_##name
172 /* SYM_ALIAS -- use only if you have to */
174 #define SYM_ALIAS(alias, name, linkage) \ argument
176 .set alias, name ASM_NL
182 * FUNC -- C-like functions (proper stack frame etc.)
183 * CODE -- non-C code (e.g. irq handlers with different, special stack etc.)
194 * ALIAS -- does not generate debug info -- the aliased function will
197 /* SYM_INNER_LABEL_ALIGN -- only for labels in the middle of code */
199 #define SYM_INNER_LABEL_ALIGN(name, linkage) \ argument
200 .type name SYM_T_NONE ASM_NL \
201 SYM_ENTRY(name, linkage, SYM_A_ALIGN)
204 /* SYM_INNER_LABEL -- only for labels in the middle of code */
206 #define SYM_INNER_LABEL(name, linkage) \ argument
207 .type name SYM_T_NONE ASM_NL \
208 SYM_ENTRY(name, linkage, SYM_A_NONE)
211 /* SYM_FUNC_START -- use for global functions */
213 #define SYM_FUNC_START(name) \ argument
214 SYM_START(name, SYM_L_GLOBAL, SYM_A_ALIGN)
217 /* SYM_FUNC_START_NOALIGN -- use for global functions, w/o alignment */
219 #define SYM_FUNC_START_NOALIGN(name) \ argument
220 SYM_START(name, SYM_L_GLOBAL, SYM_A_NONE)
223 /* SYM_FUNC_START_LOCAL -- use for local functions */
225 #define SYM_FUNC_START_LOCAL(name) \ argument
226 SYM_START(name, SYM_L_LOCAL, SYM_A_ALIGN)
229 /* SYM_FUNC_START_LOCAL_NOALIGN -- use for local functions, w/o alignment */
231 #define SYM_FUNC_START_LOCAL_NOALIGN(name) \ argument
232 SYM_START(name, SYM_L_LOCAL, SYM_A_NONE)
235 /* SYM_FUNC_START_WEAK -- use for weak functions */
237 #define SYM_FUNC_START_WEAK(name) \ argument
238 SYM_START(name, SYM_L_WEAK, SYM_A_ALIGN)
241 /* SYM_FUNC_START_WEAK_NOALIGN -- use for weak functions, w/o alignment */
243 #define SYM_FUNC_START_WEAK_NOALIGN(name) \ argument
244 SYM_START(name, SYM_L_WEAK, SYM_A_NONE)
248 * SYM_FUNC_END -- the end of SYM_FUNC_START_LOCAL, SYM_FUNC_START,
252 #define SYM_FUNC_END(name) \ argument
253 SYM_END(name, SYM_T_FUNC)
257 * SYM_FUNC_ALIAS -- define a global alias for an existing function
260 #define SYM_FUNC_ALIAS(alias, name) \ argument
261 SYM_ALIAS(alias, name, SYM_L_GLOBAL)
265 * SYM_FUNC_ALIAS_LOCAL -- define a local alias for an existing function
268 #define SYM_FUNC_ALIAS_LOCAL(alias, name) \ argument
269 SYM_ALIAS(alias, name, SYM_L_LOCAL)
273 * SYM_FUNC_ALIAS_WEAK -- define a weak global alias for an existing function
276 #define SYM_FUNC_ALIAS_WEAK(alias, name) \ argument
277 SYM_ALIAS(alias, name, SYM_L_WEAK)
280 /* SYM_CODE_START -- use for non-C (special) functions */
282 #define SYM_CODE_START(name) \ argument
283 SYM_START(name, SYM_L_GLOBAL, SYM_A_ALIGN)
286 /* SYM_CODE_START_NOALIGN -- use for non-C (special) functions, w/o alignment */
288 #define SYM_CODE_START_NOALIGN(name) \ argument
289 SYM_START(name, SYM_L_GLOBAL, SYM_A_NONE)
292 /* SYM_CODE_START_LOCAL -- use for local non-C (special) functions */
294 #define SYM_CODE_START_LOCAL(name) \ argument
295 SYM_START(name, SYM_L_LOCAL, SYM_A_ALIGN)
299 * SYM_CODE_START_LOCAL_NOALIGN -- use for local non-C (special) functions,
303 #define SYM_CODE_START_LOCAL_NOALIGN(name) \ argument
304 SYM_START(name, SYM_L_LOCAL, SYM_A_NONE)
307 /* SYM_CODE_END -- the end of SYM_CODE_START_LOCAL, SYM_CODE_START, ... */
309 #define SYM_CODE_END(name) \ argument
310 SYM_END(name, SYM_T_NONE)
315 /* SYM_DATA_START -- global data symbol */
317 #define SYM_DATA_START(name) \ argument
318 SYM_START(name, SYM_L_GLOBAL, SYM_A_NONE)
321 /* SYM_DATA_START -- local data symbol */
323 #define SYM_DATA_START_LOCAL(name) \ argument
324 SYM_START(name, SYM_L_LOCAL, SYM_A_NONE)
327 /* SYM_DATA_END -- the end of SYM_DATA_START symbol */
329 #define SYM_DATA_END(name) \ argument
330 SYM_END(name, SYM_T_OBJECT)
333 /* SYM_DATA_END_LABEL -- the labeled end of SYM_DATA_START symbol */
335 #define SYM_DATA_END_LABEL(name, linkage, label) \ argument
339 SYM_END(name, SYM_T_OBJECT)
342 /* SYM_DATA -- start+end wrapper around simple global data */
344 #define SYM_DATA(name, data...) \ argument
345 SYM_DATA_START(name) ASM_NL \
347 SYM_DATA_END(name)
350 /* SYM_DATA_LOCAL -- start+end wrapper around simple local data */
352 #define SYM_DATA_LOCAL(name, data...) \ argument
353 SYM_DATA_START_LOCAL(name) ASM_NL \
355 SYM_DATA_END(name)