Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
a7f626c1 AJ |
2 | #ifndef _ASM_C6X_LINKAGE_H |
3 | #define _ASM_C6X_LINKAGE_H | |
4 | ||
5 | #ifdef __ASSEMBLER__ | |
6 | ||
7 | #define __ALIGN .align 2 | |
8 | #define __ALIGN_STR ".align 2" | |
9 | ||
10 | #ifndef __DSBT__ | |
11 | #define ENTRY(name) \ | |
12 | .global name @ \ | |
13 | __ALIGN @ \ | |
14 | name: | |
15 | #else | |
16 | #define ENTRY(name) \ | |
17 | .global name @ \ | |
18 | .hidden name @ \ | |
19 | __ALIGN @ \ | |
20 | name: | |
21 | #endif | |
22 | ||
23 | #define ENDPROC(name) \ | |
24 | .type name, @function @ \ | |
25 | .size name, . - name | |
26 | ||
27 | #endif | |
28 | ||
29 | #include <asm-generic/linkage.h> | |
30 | ||
31 | #endif /* _ASM_C6X_LINKAGE_H */ |