blob: 0cf5e21179fc8e6fc9383d1e8e1c228feec2a2b1 [file] [log] [blame]
Al Viroe1b5bb62013-01-21 17:16:07 -05001#ifndef _ASM_POWERPC_LINKAGE_H
2#define _ASM_POWERPC_LINKAGE_H
3
Michael Ellermanf55d9662016-06-06 22:26:10 +05304#include <asm/types.h>
5
6#ifdef PPC64_ELF_ABI_v1
Al Viroe1b5bb62013-01-21 17:16:07 -05007#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
Al Viroe1b5bb62013-01-21 17:16:07 -050014
15#endif /* _ASM_POWERPC_LINKAGE_H */