H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_LINKAGE_H |
| 2 | #define _ASM_X86_LINKAGE_H |
Harvey Harrison | 82f74e7 | 2008-01-30 13:31:07 +0100 | [diff] [blame] | 3 | |
Cyrill Gorcunov | bb7f5f6 | 2009-03-09 20:19:51 +0300 | [diff] [blame] | 4 | #include <linux/stringify.h> |
| 5 | |
Ingo Molnar | 78a9909 | 2008-04-17 17:40:51 +0200 | [diff] [blame] | 6 | #undef notrace |
| 7 | #define notrace __attribute__((no_instrument_function)) |
| 8 | |
Harvey Harrison | 82f74e7 | 2008-01-30 13:31:07 +0100 | [diff] [blame] | 9 | #ifdef CONFIG_X86_32 |
| 10 | #define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0))) |
Cyrill Gorcunov | 7ab1524 | 2009-03-06 19:08:34 +0300 | [diff] [blame] | 11 | #endif /* CONFIG_X86_32 */ |
| 12 | |
| 13 | #ifdef __ASSEMBLY__ |
Harvey Harrison | 82f74e7 | 2008-01-30 13:31:07 +0100 | [diff] [blame] | 14 | |
Cyrill Gorcunov | 9569554 | 2009-02-14 00:50:18 +0300 | [diff] [blame] | 15 | #define GLOBAL(name) \ |
| 16 | .globl name; \ |
| 17 | name: |
| 18 | |
Cyrill Gorcunov | bb7f5f6 | 2009-03-09 20:19:51 +0300 | [diff] [blame] | 19 | #if defined(CONFIG_X86_64) || defined(CONFIG_X86_ALIGNMENT_16) |
| 20 | #define __ALIGN .p2align 4, 0x90 |
| 21 | #define __ALIGN_STR __stringify(__ALIGN) |
Harvey Harrison | 82f74e7 | 2008-01-30 13:31:07 +0100 | [diff] [blame] | 22 | #endif |
| 23 | |
Cyrill Gorcunov | 7ab1524 | 2009-03-06 19:08:34 +0300 | [diff] [blame] | 24 | #endif /* __ASSEMBLY__ */ |
| 25 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 26 | #endif /* _ASM_X86_LINKAGE_H */ |
Harvey Harrison | 82f74e7 | 2008-01-30 13:31:07 +0100 | [diff] [blame] | 27 | |