blob: ad8cd0d069eabd1a69fd6b802028950067b2e05e [file] [log] [blame]
Helge Dellerc5e76552007-01-23 20:50:59 +01001#ifndef __ASM_PARISC_LINKAGE_H
2#define __ASM_PARISC_LINKAGE_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07003
Helge Dellerc5e76552007-01-23 20:50:59 +01004#ifndef __ALIGN
5#define __ALIGN .align 4
6#define __ALIGN_STR ".align 4"
Linus Torvalds1da177e2005-04-16 15:20:36 -07007#endif
Helge Dellerc5e76552007-01-23 20:50:59 +01008
9/*
Helge Dellerb288a8f2007-01-23 23:32:10 +010010 * In parisc assembly a semicolon marks a comment while a
Kyle McMartin516a9492007-05-30 02:14:36 -040011 * exclamation mark is used to seperate independent lines.
Helge Dellerc5e76552007-01-23 20:50:59 +010012 */
Helge Dellerc2b6ebd2007-05-28 18:01:39 +020013#ifdef __ASSEMBLY__
14
Helge Dellerc5e76552007-01-23 20:50:59 +010015#define ENTRY(name) \
Helge Dellerb288a8f2007-01-23 23:32:10 +010016 .export name !\
Helge Dellerc5e76552007-01-23 20:50:59 +010017 ALIGN !\
18name:
19
Helge Dellerb288a8f2007-01-23 23:32:10 +010020#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 Dellerc2b6ebd2007-05-28 18:01:39 +020029#endif /* __ASSEMBLY__ */
Helge Dellerb288a8f2007-01-23 23:32:10 +010030
Helge Dellerc5e76552007-01-23 20:50:59 +010031#endif /* __ASM_PARISC_LINKAGE_H */