MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / linux / linkage.h
blob6c9873f8828751d9c48c3c2a5b0eeef793855233
1 #ifndef _LINUX_LINKAGE_H
2 #define _LINUX_LINKAGE_H
4 #include <asm/linkage.h>
6 #ifdef __cplusplus
7 #define CPP_ASMLINKAGE extern "C"
8 #else
9 #define CPP_ASMLINKAGE
10 #endif
12 #ifndef asmlinkage
13 #define asmlinkage CPP_ASMLINKAGE
14 #endif
16 #ifndef prevent_tail_call
17 # define prevent_tail_call(ret) do { } while (0)
18 #endif
20 #ifndef __ALIGN
21 #define __ALIGN .align 4,0x90
22 #define __ALIGN_STR ".align 4,0x90"
23 #endif
25 #ifdef __ASSEMBLY__
27 #define ALIGN __ALIGN
28 #define ALIGN_STR __ALIGN_STR
30 #ifndef ENTRY
31 #define ENTRY(name) \
32 .globl name; \
33 ALIGN; \
34 name:
35 #endif
37 #define KPROBE_ENTRY(name) \
38 .pushsection .kprobes.text, "ax"; \
39 ENTRY(name)
41 #define KPROBE_END(name) \
42 END(name); \
43 .popsection
45 #ifndef END
46 #define END(name) \
47 .size name, .-name
48 #endif
50 #ifndef ENDPROC
51 #define ENDPROC(name) \
52 .type name, @function; \
53 END(name)
54 #endif
56 #endif
58 #define NORET_TYPE /**/
59 #define ATTRIB_NORET __attribute__((noreturn))
60 #define NORET_AND noreturn,
62 #ifndef FASTCALL
63 #define FASTCALL(x) x
64 #define fastcall
65 #endif
67 #endif