]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - arch/powerpc/include/asm/linkage.h
Merge branch 'for-linus-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/mason...
[mirror_ubuntu-focal-kernel.git] / arch / powerpc / include / asm / linkage.h
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 */