Blame view
include/linux/linkage.h
2.19 KB
1da177e4c Linux-2.6.12-rc2 |
1 2 |
#ifndef _LINUX_LINKAGE_H #define _LINUX_LINKAGE_H |
a7bf0bd5e build: add __page... |
3 |
#include <linux/compiler.h> |
1da177e4c Linux-2.6.12-rc2 |
4 5 6 7 8 9 10 11 12 13 14 |
#include <asm/linkage.h> #ifdef __cplusplus #define CPP_ASMLINKAGE extern "C" #else #define CPP_ASMLINKAGE #endif #ifndef asmlinkage #define asmlinkage CPP_ASMLINKAGE #endif |
d50efc6c4 x86: fix UML and ... |
15 16 17 |
#ifndef asmregparm # define asmregparm #endif |
75b134837 Rename .data.page... |
18 |
#define __page_aligned_data __section(.data..page_aligned) __aligned(PAGE_SIZE) |
7c74df07f Rename .bss.page_... |
19 |
#define __page_aligned_bss __section(.bss..page_aligned) __aligned(PAGE_SIZE) |
a7bf0bd5e build: add __page... |
20 |
|
d10d89ec7 Add commentary ab... |
21 |
/* |
d2af12aea Add new macros fo... |
22 23 24 25 26 |
* For assembly routines. * * Note when using these that you must specify the appropriate * alignment directives yourself */ |
75b134837 Rename .data.page... |
27 |
#define __PAGE_ALIGNED_DATA .section ".data..page_aligned", "aw" |
7c74df07f Rename .bss.page_... |
28 |
#define __PAGE_ALIGNED_BSS .section ".bss..page_aligned", "aw" |
d2af12aea Add new macros fo... |
29 30 |
/* |
d10d89ec7 Add commentary ab... |
31 32 33 34 35 36 37 38 39 40 41 42 |
* This is used by architectures to keep arguments on the stack * untouched by the compiler by keeping them live until the end. * The argument stack may be owned by the assembly-language * caller, not the callee, and gcc doesn't always understand * that. * * We have the return value, and a maximum of six arguments. * * This should always be followed by a "return ret" for the * protection to work (ie no more work that the compiler might * end up needing stack temporaries for). */ |
b0fac0237 Fix "$(AS) -tradi... |
43 44 |
/* Assembly files may be compiled with -traditional .. */ #ifndef __ASSEMBLY__ |
54a015104 asmlinkage_protec... |
45 46 |
#ifndef asmlinkage_protect # define asmlinkage_protect(n, ret, args...) do { } while (0) |
1da177e4c Linux-2.6.12-rc2 |
47 |
#endif |
b0fac0237 Fix "$(AS) -tradi... |
48 |
#endif |
1da177e4c Linux-2.6.12-rc2 |
49 50 51 52 53 54 55 |
#ifndef __ALIGN #define __ALIGN .align 4,0x90 #define __ALIGN_STR ".align 4,0x90" #endif #ifdef __ASSEMBLY__ |
42f29a252 kbuild: Don't def... |
56 |
#ifndef LINKER_SCRIPT |
1da177e4c Linux-2.6.12-rc2 |
57 58 |
#define ALIGN __ALIGN #define ALIGN_STR __ALIGN_STR |
ab7efcc97 [PATCH] abstract ... |
59 |
#ifndef ENTRY |
1da177e4c Linux-2.6.12-rc2 |
60 61 62 63 |
#define ENTRY(name) \ .globl name; \ ALIGN; \ name: |
ab7efcc97 [PATCH] abstract ... |
64 |
#endif |
42f29a252 kbuild: Don't def... |
65 |
#endif /* LINKER_SCRIPT */ |
1da177e4c Linux-2.6.12-rc2 |
66 |
|
214541d1f add WEAK() for cr... |
67 68 69 70 71 |
#ifndef WEAK #define WEAK(name) \ .weak name; \ name: #endif |
ab7efcc97 [PATCH] abstract ... |
72 73 74 75 |
#ifndef END #define END(name) \ .size name, .-name #endif |
6b8be6df7 x86: add ENDPROC(... |
76 77 78 79 |
/* If symbol 'name' is treated as a subroutine (gets called, and returns) * then please use ENDPROC to mark 'name' as STT_FUNC for the benefit of * static analysis tools such as stack depth analyzer. */ |
ab7efcc97 [PATCH] abstract ... |
80 81 82 83 84 |
#ifndef ENDPROC #define ENDPROC(name) \ .type name, @function; \ END(name) #endif |
d0aaff979 [PATCH] Kprobes: ... |
85 |
|
1da177e4c Linux-2.6.12-rc2 |
86 87 88 89 90 |
#endif #define NORET_TYPE /**/ #define ATTRIB_NORET __attribute__((noreturn)) #define NORET_AND noreturn, |
1da177e4c Linux-2.6.12-rc2 |
91 |
#endif |