mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
![Christophe Leroy](/assets/img/avatar_default.png)
Replace all uses of PPC64_ELF_ABI_v1 and PPC64_ELF_ABI_v2 by resp CONFIG_PPC64_ELF_ABI_V1 and CONFIG_PPC64_ELF_ABI_V2. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/ba13d59e8c50bc9aa6328f1c7f0c0d0278e0a3a7.1652074503.git.christophe.leroy@csgroup.eu
16 lines
508 B
C
16 lines
508 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ASM_POWERPC_LINKAGE_H
|
|
#define _ASM_POWERPC_LINKAGE_H
|
|
|
|
#include <asm/types.h>
|
|
|
|
#ifdef CONFIG_PPC64_ELF_ABI_V1
|
|
#define cond_syscall(x) \
|
|
asm ("\t.weak " #x "\n\t.set " #x ", sys_ni_syscall\n" \
|
|
"\t.weak ." #x "\n\t.set ." #x ", .sys_ni_syscall\n")
|
|
#define SYSCALL_ALIAS(alias, name) \
|
|
asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n" \
|
|
"\t.globl ." #alias "\n\t.set ." #alias ", ." #name)
|
|
#endif
|
|
|
|
#endif /* _ASM_POWERPC_LINKAGE_H */
|