xref: /linux/arch/powerpc/include/asm/linkage.h (revision 905e46acd3272d04566fec49afbd7ad9e2ed9ae3)
1 #ifndef _ASM_POWERPC_LINKAGE_H
2 #define _ASM_POWERPC_LINKAGE_H
3 
4 #include <asm/types.h>
5 
6 #ifdef PPC64_ELF_ABI_v1
7 #define cond_syscall(x) \
8 	asm ("\t.weak " #x "\n\t.set " #x ", sys_ni_syscall\n"		\
9 	     "\t.weak ." #x "\n\t.set ." #x ", .sys_ni_syscall\n")
10 #define SYSCALL_ALIAS(alias, name)					\
11 	asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n"	\
12 	     "\t.globl ." #alias "\n\t.set ." #alias ", ." #name)
13 #endif
14 
15 #endif	/* _ASM_POWERPC_LINKAGE_H */
16