Commit | Line | Data |
---|---|---|
c5e76552 HD |
1 | #ifndef __ASM_PARISC_LINKAGE_H |
2 | #define __ASM_PARISC_LINKAGE_H | |
1da177e4 | 3 | |
f39cce65 HD |
4 | #include <asm/dwarf.h> |
5 | ||
c5e76552 HD |
6 | #ifndef __ALIGN |
7 | #define __ALIGN .align 4 | |
8 | #define __ALIGN_STR ".align 4" | |
1da177e4 | 9 | #endif |
c5e76552 HD |
10 | |
11 | /* | |
b288a8f7 | 12 | * In parisc assembly a semicolon marks a comment while a |
9636cb0f | 13 | * exclamation mark is used to separate independent lines. |
c5e76552 | 14 | */ |
f39cce65 HD |
15 | #define ASM_NL ! |
16 | ||
c2b6ebd5 HD |
17 | #ifdef __ASSEMBLY__ |
18 | ||
c5e76552 | 19 | #define ENTRY(name) \ |
b288a8f7 | 20 | .export name !\ |
c5e76552 HD |
21 | ALIGN !\ |
22 | name: | |
23 | ||
b288a8f7 HD |
24 | #ifdef CONFIG_64BIT |
25 | #define ENDPROC(name) \ | |
26 | END(name) | |
27 | #else | |
28 | #define ENDPROC(name) \ | |
29 | .type name, @function !\ | |
30 | END(name) | |
31 | #endif | |
32 | ||
f39cce65 HD |
33 | #define ENTRY_CFI(name) \ |
34 | ENTRY(name) ASM_NL\ | |
35 | CFI_STARTPROC | |
36 | ||
37 | #define ENDPROC_CFI(name) \ | |
38 | ENDPROC(name) ASM_NL\ | |
39 | CFI_ENDPROC | |
40 | ||
c2b6ebd5 | 41 | #endif /* __ASSEMBLY__ */ |
b288a8f7 | 42 | |
c5e76552 | 43 | #endif /* __ASM_PARISC_LINKAGE_H */ |