1 #ifndef _LINUX_LINKAGE_H
2 #define _LINUX_LINKAGE_H
4 #include <linux/compiler.h>
5 #include <asm/linkage.h>
8 #define CPP_ASMLINKAGE extern "C"
10 #define CPP_ASMLINKAGE
14 #define asmlinkage CPP_ASMLINKAGE
17 #define __page_aligned_data __section(.data..page_aligned) __aligned(PAGE_SIZE)
18 #define __page_aligned_bss __section(.bss..page_aligned) __aligned(PAGE_SIZE)
21 * For assembly routines.
23 * Note when using these that you must specify the appropriate
24 * alignment directives yourself
26 #define __PAGE_ALIGNED_DATA .section ".data..page_aligned", "aw"
27 #define __PAGE_ALIGNED_BSS .section ".bss..page_aligned", "aw"
30 * This is used by architectures to keep arguments on the stack
31 * untouched by the compiler by keeping them live until the end.
32 * The argument stack may be owned by the assembly-language
33 * caller, not the callee, and gcc doesn't always understand
36 * We have the return value, and a maximum of six arguments.
38 * This should always be followed by a "return ret" for the
39 * protection to work (ie no more work that the compiler might
40 * end up needing stack temporaries for).
42 /* Assembly files may be compiled with -traditional .. */
44 #ifndef asmlinkage_protect
45 # define asmlinkage_protect(n, ret, args...) do { } while (0)
50 #define __ALIGN .align 4,0x90
51 #define __ALIGN_STR ".align 4,0x90"
58 #define ALIGN_STR __ALIGN_STR
66 #endif /* LINKER_SCRIPT */
79 /* If symbol 'name' is treated as a subroutine (gets called, and returns)
80 * then please use ENDPROC to mark 'name' as STT_FUNC for the benefit of
81 * static analysis tools such as stack depth analyzer.
84 #define ENDPROC(name) \
85 .type name, @function; \
91 #define NORET_TYPE /**/
92 #define ATTRIB_NORET __attribute__((noreturn))
93 #define NORET_AND noreturn,
This page took 0.031498 seconds and 5 git commands to generate.