C6X: headers
[linux-3.10.git] / arch / c6x / include / asm / linkage.h
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 */