blob: 1f00d2891d69171ac1e89673223ce1d6fadc7111 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Al Viroe1b5bb62013-01-21 17:16:07 -05002#ifndef _ASM_POWERPC_LINKAGE_H
3#define _ASM_POWERPC_LINKAGE_H
4
Michael Ellermanf55d9662016-06-06 22:26:10 +05305#include <asm/types.h>
6
7#ifdef PPC64_ELF_ABI_v1
Al Viroe1b5bb62013-01-21 17:16:07 -05008#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
Al Viroe1b5bb62013-01-21 17:16:07 -050015
16#endif /* _ASM_POWERPC_LINKAGE_H */