Blame view
include/linux/linkage.h
2.15 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 |
75b134837 Rename .data.page... |
15 |
#define __page_aligned_data __section(.data..page_aligned) __aligned(PAGE_SIZE) |
7c74df07f Rename .bss.page_... |
16 |
#define __page_aligned_bss __section(.bss..page_aligned) __aligned(PAGE_SIZE) |
a7bf0bd5e build: add __page... |
17 |
|
d10d89ec7 Add commentary ab... |
18 |
/* |
d2af12aea Add new macros fo... |
19 20 21 22 23 |
* For assembly routines. * * Note when using these that you must specify the appropriate * alignment directives yourself */ |
75b134837 Rename .data.page... |
24 |
#define __PAGE_ALIGNED_DATA .section ".data..page_aligned", "aw" |
7c74df07f Rename .bss.page_... |
25 |
#define __PAGE_ALIGNED_BSS .section ".bss..page_aligned", "aw" |
d2af12aea Add new macros fo... |
26 27 |
/* |
d10d89ec7 Add commentary ab... |
28 29 30 31 32 33 34 35 36 37 38 39 |
* 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... |
40 41 |
/* Assembly files may be compiled with -traditional .. */ #ifndef __ASSEMBLY__ |
54a015104 asmlinkage_protec... |
42 43 |
#ifndef asmlinkage_protect # define asmlinkage_protect(n, ret, args...) do { } while (0) |
1da177e4c Linux-2.6.12-rc2 |
44 |
#endif |
b0fac0237 Fix "$(AS) -tradi... |
45 |
#endif |
1da177e4c Linux-2.6.12-rc2 |
46 47 48 49 50 51 52 |
#ifndef __ALIGN #define __ALIGN .align 4,0x90 #define __ALIGN_STR ".align 4,0x90" #endif #ifdef __ASSEMBLY__ |
42f29a252 kbuild: Don't def... |
53 |
#ifndef LINKER_SCRIPT |
1da177e4c Linux-2.6.12-rc2 |
54 55 |
#define ALIGN __ALIGN #define ALIGN_STR __ALIGN_STR |
ab7efcc97 [PATCH] abstract ... |
56 |
#ifndef ENTRY |
1da177e4c Linux-2.6.12-rc2 |
57 58 59 60 |
#define ENTRY(name) \ .globl name; \ ALIGN; \ name: |
ab7efcc97 [PATCH] abstract ... |
61 |
#endif |
42f29a252 kbuild: Don't def... |
62 |
#endif /* LINKER_SCRIPT */ |
1da177e4c Linux-2.6.12-rc2 |
63 |
|
214541d1f add WEAK() for cr... |
64 65 66 67 68 |
#ifndef WEAK #define WEAK(name) \ .weak name; \ name: #endif |
ab7efcc97 [PATCH] abstract ... |
69 70 71 72 |
#ifndef END #define END(name) \ .size name, .-name #endif |
6b8be6df7 x86: add ENDPROC(... |
73 74 75 76 |
/* 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 ... |
77 78 79 80 81 |
#ifndef ENDPROC #define ENDPROC(name) \ .type name, @function; \ END(name) #endif |
d0aaff979 [PATCH] Kprobes: ... |
82 |
|
1da177e4c Linux-2.6.12-rc2 |
83 84 85 86 87 |
#endif #define NORET_TYPE /**/ #define ATTRIB_NORET __attribute__((noreturn)) #define NORET_AND noreturn, |
1da177e4c Linux-2.6.12-rc2 |
88 |
#endif |