b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | #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 |