diff options
Diffstat (limited to 'include/asm-cris')
| -rw-r--r-- | include/asm-cris/unistd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-cris/unistd.h b/include/asm-cris/unistd.h index 80a36c1369ce..b78012d05516 100644 --- a/include/asm-cris/unistd.h +++ b/include/asm-cris/unistd.h @@ -395,4 +395,12 @@ static inline pid_t wait(int * wait_stat) #endif +/* + * "Conditional" syscalls + * + * What we want is __attribute__((weak,alias("sys_ni_syscall"))), + * but it doesn't work on all toolchains, so we just do it by hand + */ +#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall"); + #endif /* _ASM_CRIS_UNISTD_H_ */ |
