Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / arch / powerpc / include / asm / linkage.h
blobe3ad5c72724afd627fb906ba37239a0f8fdf024b
1 #ifndef _ASM_POWERPC_LINKAGE_H
2 #define _ASM_POWERPC_LINKAGE_H
4 #ifdef CONFIG_PPC64
5 #if !defined(_CALL_ELF) || _CALL_ELF != 2
6 #define cond_syscall(x) \
7 asm ("\t.weak " #x "\n\t.set " #x ", sys_ni_syscall\n" \
8 "\t.weak ." #x "\n\t.set ." #x ", .sys_ni_syscall\n")
9 #define SYSCALL_ALIAS(alias, name) \
10 asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n" \
11 "\t.globl ." #alias "\n\t.set ." #alias ", ." #name)
12 #endif
13 #endif
15 #endif /* _ASM_POWERPC_LINKAGE_H */