xref: /openbmc/linux/arch/mips/include/asm/linkage.h (revision b2441318)
1b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */
2384740dcSRalf Baechle #ifndef __ASM_LINKAGE_H
3384740dcSRalf Baechle #define __ASM_LINKAGE_H
4384740dcSRalf Baechle 
5384740dcSRalf Baechle #ifdef __ASSEMBLY__
6384740dcSRalf Baechle #include <asm/asm.h>
7384740dcSRalf Baechle #endif
8384740dcSRalf Baechle 
9e1b5bb6dSAl Viro #define cond_syscall(x) asm(".weak\t" #x "\n" #x "\t=\tsys_ni_syscall")
10e1b5bb6dSAl Viro #define SYSCALL_ALIAS(alias, name)					\
11e1b5bb6dSAl Viro 	asm ( #alias " = " #name "\n\t.globl " #alias)
12384740dcSRalf Baechle 
13384740dcSRalf Baechle #endif
14