Merge tag 'pm-4.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
[linux/fpc-iii.git] / arch / x86 / include / asm / linkage.h
blob0ccb26dda126da6d5876c84264c290d1fa203d58
1 #ifndef _ASM_X86_LINKAGE_H
2 #define _ASM_X86_LINKAGE_H
4 #include <linux/stringify.h>
6 #undef notrace
7 #define notrace __attribute__((no_instrument_function))
9 #ifdef CONFIG_X86_32
10 #define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0)))
11 #endif /* CONFIG_X86_32 */
13 #ifdef __ASSEMBLY__
15 #define GLOBAL(name) \
16 .globl name; \
17 name:
19 #if defined(CONFIG_X86_64) || defined(CONFIG_X86_ALIGNMENT_16)
20 #define __ALIGN .p2align 4, 0x90
21 #define __ALIGN_STR __stringify(__ALIGN)
22 #endif
24 #endif /* __ASSEMBLY__ */
26 #endif /* _ASM_X86_LINKAGE_H */