blob: 0ccb26dda126da6d5876c84264c290d1fa203d58 [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_LINKAGE_H
2#define _ASM_X86_LINKAGE_H
Harvey Harrison82f74e72008-01-30 13:31:07 +01003
Cyrill Gorcunovbb7f5f62009-03-09 20:19:51 +03004#include <linux/stringify.h>
5
Ingo Molnar78a99092008-04-17 17:40:51 +02006#undef notrace
7#define notrace __attribute__((no_instrument_function))
8
Harvey Harrison82f74e72008-01-30 13:31:07 +01009#ifdef CONFIG_X86_32
10#define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0)))
Cyrill Gorcunov7ab15242009-03-06 19:08:34 +030011#endif /* CONFIG_X86_32 */
12
13#ifdef __ASSEMBLY__
Harvey Harrison82f74e72008-01-30 13:31:07 +010014
Cyrill Gorcunov95695542009-02-14 00:50:18 +030015#define GLOBAL(name) \
16 .globl name; \
17 name:
18
Cyrill Gorcunovbb7f5f62009-03-09 20:19:51 +030019#if defined(CONFIG_X86_64) || defined(CONFIG_X86_ALIGNMENT_16)
20#define __ALIGN .p2align 4, 0x90
21#define __ALIGN_STR __stringify(__ALIGN)
Harvey Harrison82f74e72008-01-30 13:31:07 +010022#endif
23
Cyrill Gorcunov7ab15242009-03-06 19:08:34 +030024#endif /* __ASSEMBLY__ */
25
H. Peter Anvin1965aae2008-10-22 22:26:29 -070026#endif /* _ASM_X86_LINKAGE_H */
Harvey Harrison82f74e72008-01-30 13:31:07 +010027