1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 2e1b5bb6dSAl Viro #ifndef _ASM_POWERPC_LINKAGE_H 3e1b5bb6dSAl Viro #define _ASM_POWERPC_LINKAGE_H 4e1b5bb6dSAl Viro 5f55d9665SMichael Ellerman #include <asm/types.h> 6f55d9665SMichael Ellerman 7*01f2cf0bSSathvika Vasireddy #define __ALIGN .align 2 8*01f2cf0bSSathvika Vasireddy #define __ALIGN_STR ".align 2" 9*01f2cf0bSSathvika Vasireddy 107d40aff8SChristophe Leroy #ifdef CONFIG_PPC64_ELF_ABI_V1 11e1b5bb6dSAl Viro #define cond_syscall(x) \ 12e1b5bb6dSAl Viro asm ("\t.weak " #x "\n\t.set " #x ", sys_ni_syscall\n" \ 13e1b5bb6dSAl Viro "\t.weak ." #x "\n\t.set ." #x ", .sys_ni_syscall\n") 14e1b5bb6dSAl Viro #define SYSCALL_ALIAS(alias, name) \ 15e1b5bb6dSAl Viro asm ("\t.globl " #alias "\n\t.set " #alias ", " #name "\n" \ 16e1b5bb6dSAl Viro "\t.globl ." #alias "\n\t.set ." #alias ", ." #name) 17e1b5bb6dSAl Viro #endif 18e1b5bb6dSAl Viro 19e1b5bb6dSAl Viro #endif /* _ASM_POWERPC_LINKAGE_H */ 20