1 #ifndef _LINUX_LINKAGE_H
2 #define _LINUX_LINKAGE_H
4 #include <asm/linkage.h>
7 #define CPP_ASMLINKAGE extern "C"
13 #define asmlinkage CPP_ASMLINKAGE
21 * This is used by architectures to keep arguments on the stack
22 * untouched by the compiler by keeping them live until the end.
23 * The argument stack may be owned by the assembly-language
24 * caller, not the callee, and gcc doesn't always understand
27 * We have the return value, and a maximum of six arguments.
29 * This should always be followed by a "return ret" for the
30 * protection to work (ie no more work that the compiler might
31 * end up needing stack temporaries for).
33 /* Assembly files may be compiled with -traditional .. */
35 #ifndef asmlinkage_protect
36 # define asmlinkage_protect(n, ret, args...) do { } while (0)
41 #define __ALIGN .align 4,0x90
42 #define __ALIGN_STR ".align 4,0x90"
48 #define ALIGN_STR __ALIGN_STR
63 #define KPROBE_ENTRY(name) \
64 .pushsection .kprobes.text, "ax"; \
67 #define KPROBE_END(name) \
76 /* If symbol 'name' is treated as a subroutine (gets called, and returns)
77 * then please use ENDPROC to mark 'name' as STT_FUNC for the benefit of
78 * static analysis tools such as stack depth analyzer.
81 #define ENDPROC(name) \
82 .type name, @function; \
88 #define NORET_TYPE /**/
89 #define ATTRIB_NORET __attribute__((noreturn))
90 #define NORET_AND noreturn,