diff options
Diffstat (limited to 'arch/c6x/include/asm/linkage.h')
-rw-r--r-- | arch/c6x/include/asm/linkage.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/c6x/include/asm/linkage.h b/arch/c6x/include/asm/linkage.h new file mode 100644 index 000000000000..376925c47d57 --- /dev/null +++ b/arch/c6x/include/asm/linkage.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #ifndef _ASM_C6X_LINKAGE_H | ||
2 | #define _ASM_C6X_LINKAGE_H | ||
3 | |||
4 | #ifdef __ASSEMBLER__ | ||
5 | |||
6 | #define __ALIGN .align 2 | ||
7 | #define __ALIGN_STR ".align 2" | ||
8 | |||
9 | #ifndef __DSBT__ | ||
10 | #define ENTRY(name) \ | ||
11 | .global name @ \ | ||
12 | __ALIGN @ \ | ||
13 | name: | ||
14 | #else | ||
15 | #define ENTRY(name) \ | ||
16 | .global name @ \ | ||
17 | .hidden name @ \ | ||
18 | __ALIGN @ \ | ||
19 | name: | ||
20 | #endif | ||
21 | |||
22 | #define ENDPROC(name) \ | ||
23 | .type name, @function @ \ | ||
24 | .size name, . - name | ||
25 | |||
26 | #endif | ||
27 | |||
28 | #include <asm-generic/linkage.h> | ||
29 | |||
30 | #endif /* _ASM_C6X_LINKAGE_H */ | ||