2 * Copyright 2004-2009 Analog Devices Inc.
4 * Licensed under the GPL-2 or later.
6 #ifndef __ASM_BFIN_UNISTD_H
7 #define __ASM_BFIN_UNISTD_H
9 #include <uapi/asm/unistd.h>
11 #define __ARCH_WANT_STAT64
12 #define __ARCH_WANT_SYS_ALARM
13 #define __ARCH_WANT_SYS_GETHOSTNAME
14 #define __ARCH_WANT_SYS_PAUSE
15 #define __ARCH_WANT_SYS_SGETMASK
16 #define __ARCH_WANT_SYS_TIME
17 #define __ARCH_WANT_SYS_FADVISE64
18 #define __ARCH_WANT_SYS_GETPGRP
19 #define __ARCH_WANT_SYS_LLSEEK
20 #define __ARCH_WANT_SYS_NICE
21 #define __ARCH_WANT_SYS_RT_SIGACTION
22 #define __ARCH_WANT_SYS_RT_SIGSUSPEND
23 #define __ARCH_WANT_SYS_EXECVE
24 #define __ARCH_WANT_SYS_VFORK
27 * "Conditional" syscalls
29 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
30 * but it doesn't work on all toolchains, so we just do it by hand
32 #define cond_syscall(x) asm(".weak\t_" #x "\n\t.set\t_" #x ",_sys_ni_syscall");
34 #endif /* __ASM_BFIN_UNISTD_H */