Commit | Line | Data |
---|---|---|
1965aae3 PA |
1 | #ifndef _ASM_X86_LINKAGE_H |
2 | #define _ASM_X86_LINKAGE_H | |
82f74e71 | 3 | |
bb7f5f6c CG |
4 | #include <linux/stringify.h> |
5 | ||
78a9909a IM |
6 | #undef notrace |
7 | #define notrace __attribute__((no_instrument_function)) | |
8 | ||
96a388de | 9 | #ifdef CONFIG_X86_32 |
82f74e71 | 10 | #define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0))) |
7ab15247 CG |
11 | #endif /* CONFIG_X86_32 */ |
12 | ||
13 | #ifdef __ASSEMBLY__ | |
82f74e71 | 14 | |
95695547 CG |
15 | #define GLOBAL(name) \ |
16 | .globl name; \ | |
17 | name: | |
18 | ||
bb7f5f6c CG |
19 | #if defined(CONFIG_X86_64) || defined(CONFIG_X86_ALIGNMENT_16) |
20 | #define __ALIGN .p2align 4, 0x90 | |
21 | #define __ALIGN_STR __stringify(__ALIGN) | |
82f74e71 HH |
22 | #endif |
23 | ||
7ab15247 CG |
24 | #endif /* __ASSEMBLY__ */ |
25 | ||
1965aae3 | 26 | #endif /* _ASM_X86_LINKAGE_H */ |
82f74e71 | 27 |