Helge Deller | c5e7655 | 2007-01-23 20:50:59 +0100 | [diff] [blame] | 1 | #ifndef __ASM_PARISC_LINKAGE_H |
2 | #define __ASM_PARISC_LINKAGE_H | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | |
Helge Deller | c5e7655 | 2007-01-23 20:50:59 +0100 | [diff] [blame] | 4 | #ifndef __ALIGN |
5 | #define __ALIGN .align 4 | ||||
6 | #define __ALIGN_STR ".align 4" | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | #endif |
Helge Deller | c5e7655 | 2007-01-23 20:50:59 +0100 | [diff] [blame] | 8 | |
9 | /* | ||||
Helge Deller | b288a8f | 2007-01-23 23:32:10 +0100 | [diff] [blame] | 10 | * In parisc assembly a semicolon marks a comment while a |
Kyle McMartin | 516a949 | 2007-05-30 02:14:36 -0400 | [diff] [blame] | 11 | * exclamation mark is used to seperate independent lines. |
Helge Deller | c5e7655 | 2007-01-23 20:50:59 +0100 | [diff] [blame] | 12 | */ |
Helge Deller | c2b6ebd | 2007-05-28 18:01:39 +0200 | [diff] [blame] | 13 | #ifdef __ASSEMBLY__ |
14 | |||||
Helge Deller | c5e7655 | 2007-01-23 20:50:59 +0100 | [diff] [blame] | 15 | #define ENTRY(name) \ |
Helge Deller | b288a8f | 2007-01-23 23:32:10 +0100 | [diff] [blame] | 16 | .export name !\ |
Helge Deller | c5e7655 | 2007-01-23 20:50:59 +0100 | [diff] [blame] | 17 | ALIGN !\ |
18 | name: | ||||
19 | |||||
Helge Deller | b288a8f | 2007-01-23 23:32:10 +0100 | [diff] [blame] | 20 | #ifdef CONFIG_64BIT |
21 | #define ENDPROC(name) \ | ||||
22 | END(name) | ||||
23 | #else | ||||
24 | #define ENDPROC(name) \ | ||||
25 | .type name, @function !\ | ||||
26 | END(name) | ||||
27 | #endif | ||||
28 | |||||
Helge Deller | c2b6ebd | 2007-05-28 18:01:39 +0200 | [diff] [blame] | 29 | #endif /* __ASSEMBLY__ */ |
Helge Deller | b288a8f | 2007-01-23 23:32:10 +0100 | [diff] [blame] | 30 | |
Helge Deller | c5e7655 | 2007-01-23 20:50:59 +0100 | [diff] [blame] | 31 | #endif /* __ASM_PARISC_LINKAGE_H */ |