xref: /linux/arch/powerpc/include/asm/linkage.h (revision 1c07425e902cd3137961c3d45b4271bf8a9b8eb9)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_LINKAGE_H
3 #define _ASM_POWERPC_LINKAGE_H
4 
5 #include <asm/types.h>
6 
7 #define __ALIGN		.align 2
8 #define __ALIGN_STR	".align 2"
9 
10 #ifdef CONFIG_PPC64_ELF_ABI_V1
11 #define cond_syscall(x) \
12 	asm ("\t.weak " #x "\n\t.set " #x ", sys_ni_syscall\n"		\
13 	     "\t.weak ." #x "\n\t.set ." #x ", .sys_ni_syscall\n")
14 #define SYSCALL_ALIAS(alias, name)					\
15 	asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n"	\
16 	     "\t.globl ." #alias "\n\t.set ." #alias ", ." #name)
17 #endif
18 
19 #endif	/* _ASM_POWERPC_LINKAGE_H */
20