Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ASM_LINKAGE_H |
| 2 | #define __ASM_LINKAGE_H |
| 3 | |
Jan Beulich | ab7efcc | 2006-03-24 03:16:17 -0800 | [diff] [blame] | 4 | #ifdef __ASSEMBLY__ |
| 5 | #include <asm/asm.h> |
| 6 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | |
Ralf Baechle | 641e97f | 2007-10-11 23:46:05 +0100 | [diff] [blame] | 8 | #define __weak __attribute__((weak)) |
Al Viro | e1b5bb6 | 2013-01-21 17:16:07 -0500 | [diff] [blame] | 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) |
Ralf Baechle | 641e97f | 2007-10-11 23:46:05 +0100 | [diff] [blame] | 12 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | #endif |