blob: 2767dda9e309100f40142567a970d6a4a1b07a4a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __ASM_LINKAGE_H
2#define __ASM_LINKAGE_H
3
Jan Beulichab7efcc2006-03-24 03:16:17 -08004#ifdef __ASSEMBLY__
5#include <asm/asm.h>
6#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
Ralf Baechle641e97f2007-10-11 23:46:05 +01008#define __weak __attribute__((weak))
Al Viroe1b5bb62013-01-21 17:16:07 -05009#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)
Ralf Baechle641e97f2007-10-11 23:46:05 +010012
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#endif