xref: /OK3568_Linux_fs/kernel/arch/mips/include/asm/linkage.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef __ASM_LINKAGE_H
3*4882a593Smuzhiyun #define __ASM_LINKAGE_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun #ifdef __ASSEMBLY__
6*4882a593Smuzhiyun #include <asm/asm.h>
7*4882a593Smuzhiyun #endif
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun #define cond_syscall(x) asm(".weak\t" #x "\n" #x "\t=\tsys_ni_syscall")
10*4882a593Smuzhiyun #define SYSCALL_ALIAS(alias, name)					\
11*4882a593Smuzhiyun 	asm ( #alias " = " #name "\n\t.globl " #alias)
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun #endif
14