blob: ebee3113a62ff7bbc17e12f8de318e9db37caac3 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#ifndef __ASM_LINKAGE_H
2#define __ASM_LINKAGE_H
3
4#define __ALIGN .align 2
5#define __ALIGN_STR ".align 2"
6
7/*
8 * Annotate a function as position independent, i.e., safe to be called before
9 * the kernel virtual mapping is activated.
10 */
11#define SYM_FUNC_START_PI(x) \
12 SYM_FUNC_START_ALIAS(__pi_##x); \
13 SYM_FUNC_START(x)
14
15#define SYM_FUNC_START_WEAK_PI(x) \
16 SYM_FUNC_START_ALIAS(__pi_##x); \
17 SYM_FUNC_START_WEAK(x)
18
19#define SYM_FUNC_END_PI(x) \
20 SYM_FUNC_END(x); \
21 SYM_FUNC_END_ALIAS(__pi_##x)
22
23#endif