1 #ifndef _LINUX_LINKAGE_H
2 #define _LINUX_LINKAGE_H
5 #define CPP_ASMLINKAGE extern "C"
10 #if defined __i386__ && (__GNUC__ > 2 || __GNUC_MINOR__ > 7)
11 #define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0)))
13 #define asmlinkage CPP_ASMLINKAGE
17 #define STRINGIFY(X) #X
18 #define SYMBOL_NAME_STR(X) STRINGIFY(SYMBOL_NAME(X))
20 #define SYMBOL_NAME(X) _##X
21 #define SYMBOL_NAME_LABEL(X) _##X##:
23 #define SYMBOL_NAME(X) _/**/X
24 #define SYMBOL_NAME_LABEL(X) _/**/X/**/:
27 #define SYMBOL_NAME_STR(X) #X
28 #define SYMBOL_NAME(X) X
30 #define SYMBOL_NAME_LABEL(X) X##:
32 #define SYMBOL_NAME_LABEL(X) X/**/:
37 #define __ALIGN .align 0
38 #define __ALIGN_STR ".align 0"
41 #define __ALIGN .align 4
42 #define __ALIGN_STR ".align 4"
45 #define __ALIGN .balign 4
46 #define __ALIGN_STR ".balign 4"
48 #if !defined(__i486__) && !defined(__i586__)
49 #define __ALIGN .align 4,0x90
50 #define __ALIGN_STR ".align 4,0x90"
51 #else /* __i486__/__i586__ */
52 #define __ALIGN .align 16,0x90
53 #define __ALIGN_STR ".align 16,0x90"
54 #endif /* __i486__/__i586__ */
56 #endif /* __mc68000__ */
62 #define ALIGN_STR __ALIGN_STR
65 .globl SYMBOL_NAME(name); \
67 SYMBOL_NAME_LABEL(name)