]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/powerpc/include/asm/linkage.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / powerpc / include / asm / linkage.h
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 #ifdef PPC64_ELF_ABI_v1
8 #define cond_syscall(x) \
9 asm ("\t.weak " #x "\n\t.set " #x ", sys_ni_syscall\n" \
10 "\t.weak ." #x "\n\t.set ." #x ", .sys_ni_syscall\n")
11 #define SYSCALL_ALIAS(alias, name) \
12 asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n" \
13 "\t.globl ." #alias "\n\t.set ." #alias ", ." #name)
14 #endif
15
16 #endif /* _ASM_POWERPC_LINKAGE_H */