hc
2023-10-25 6c2073b7aa40e29d0eca7d571dd7bc590c7ecaa7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_LINKAGE_H
#define _ASM_X86_LINKAGE_H
 
#include <linux/stringify.h>
 
#undef notrace
#define notrace __attribute__((no_instrument_function))
 
#ifdef CONFIG_X86_32
#define asmlinkage CPP_ASMLINKAGE __attribute__((regparm(0)))
#endif /* CONFIG_X86_32 */
 
#ifdef __ASSEMBLY__
 
#define GLOBAL(name)    \
   .globl name;    \
   name:
 
#if defined(CONFIG_X86_64) || defined(CONFIG_X86_ALIGNMENT_16)
#define __ALIGN        .p2align 4, 0x90
#define __ALIGN_STR    __stringify(__ALIGN)
#endif
 
#endif /* __ASSEMBLY__ */
 
#endif /* _ASM_X86_LINKAGE_H */