]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/x86/include/asm/linkage.h
Merge tag 'pci-v4.15-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / include / asm / linkage.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1965aae3
PA
2#ifndef _ASM_X86_LINKAGE_H
3#define _ASM_X86_LINKAGE_H
82f74e71 4
bb7f5f6c
CG
5#include <linux/stringify.h>
6
78a9909a
IM
7#undef notrace
8#define notrace __attribute__((no_instrument_function))
9
96a388de 10#ifdef CONFIG_X86_32
82f74e71 11#define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0)))
7ab15247
CG
12#endif /* CONFIG_X86_32 */
13
14#ifdef __ASSEMBLY__
82f74e71 15
95695547
CG
16#define GLOBAL(name) \
17 .globl name; \
18 name:
19
bb7f5f6c
CG
20#if defined(CONFIG_X86_64) || defined(CONFIG_X86_ALIGNMENT_16)
21#define __ALIGN .p2align 4, 0x90
22#define __ALIGN_STR __stringify(__ALIGN)
82f74e71
HH
23#endif
24
7ab15247
CG
25#endif /* __ASSEMBLY__ */
26
1965aae3 27#endif /* _ASM_X86_LINKAGE_H */
82f74e71 28