xref: /linux/arch/mips/include/asm/linkage.h (revision 0f29b46d49b0ca50536632c6a33986c3171f5ea1)
1 #ifndef __ASM_LINKAGE_H
2 #define __ASM_LINKAGE_H
3 
4 #ifdef __ASSEMBLY__
5 #include <asm/asm.h>
6 #endif
7 
8 #define __weak __attribute__((weak))
9 #define cond_syscall(x) asm(".weak\t" #x "\n" #x "\t=\tsys_ni_syscall")
10 #define SYSCALL_ALIAS(alias, name)					\
11 	asm ( #alias " = " #name "\n\t.globl " #alias)
12 
13 #endif
14