xref: /linux/arch/microblaze/include/asm/unistd.h (revision 3cb0eab2db578345031c689d4ff9b70840271b5c)
1dd0105a6SMichal Simek /*
2dd0105a6SMichal Simek  * Copyright (C) 2007-2008 Michal Simek <monstr@monstr.eu>
3dd0105a6SMichal Simek  * Copyright (C) 2006 Atmark Techno, Inc.
4dd0105a6SMichal Simek  *
5dd0105a6SMichal Simek  * This file is subject to the terms and conditions of the GNU General Public
6dd0105a6SMichal Simek  * License. See the file "COPYING" in the main directory of this archive
7dd0105a6SMichal Simek  * for more details.
8dd0105a6SMichal Simek  */
9dd0105a6SMichal Simek #ifndef _ASM_MICROBLAZE_UNISTD_H
10dd0105a6SMichal Simek #define _ASM_MICROBLAZE_UNISTD_H
11dd0105a6SMichal Simek 
12*3cb0eab2SDavid Howells #include <uapi/asm/unistd.h>
13dd0105a6SMichal Simek 
14dd0105a6SMichal Simek #ifndef __ASSEMBLY__
15dd0105a6SMichal Simek 
16dd0105a6SMichal Simek /* #define __ARCH_WANT_OLD_READDIR */
17dd0105a6SMichal Simek /* #define __ARCH_WANT_OLD_STAT */
18dd0105a6SMichal Simek #define __ARCH_WANT_STAT64
19dd0105a6SMichal Simek #define __ARCH_WANT_SYS_ALARM
20dd0105a6SMichal Simek #define __ARCH_WANT_SYS_GETHOSTNAME
21dd0105a6SMichal Simek #define __ARCH_WANT_SYS_PAUSE
22dd0105a6SMichal Simek #define __ARCH_WANT_SYS_SGETMASK
23dd0105a6SMichal Simek #define __ARCH_WANT_SYS_SIGNAL
24dd0105a6SMichal Simek #define __ARCH_WANT_SYS_TIME
25dd0105a6SMichal Simek #define __ARCH_WANT_SYS_UTIME
26dd0105a6SMichal Simek #define __ARCH_WANT_SYS_WAITPID
27dd0105a6SMichal Simek #define __ARCH_WANT_SYS_SOCKETCALL
28dd0105a6SMichal Simek #define __ARCH_WANT_SYS_FADVISE64
29dd0105a6SMichal Simek #define __ARCH_WANT_SYS_GETPGRP
30dd0105a6SMichal Simek #define __ARCH_WANT_SYS_LLSEEK
31dd0105a6SMichal Simek #define __ARCH_WANT_SYS_NICE
32dd0105a6SMichal Simek /* #define __ARCH_WANT_SYS_OLD_GETRLIMIT */
33dd0105a6SMichal Simek #define __ARCH_WANT_SYS_OLDUMOUNT
34dd0105a6SMichal Simek #define __ARCH_WANT_SYS_SIGPENDING
35dd0105a6SMichal Simek #define __ARCH_WANT_SYS_SIGPROCMASK
36dd0105a6SMichal Simek #define __ARCH_WANT_SYS_RT_SIGACTION
373183e068SArnd Bergmann #define __ARCH_WANT_SYS_RT_SIGSUSPEND
385f6c4ab6SAl Viro #define __ARCH_WANT_SYS_EXECVE
39f3268edbSAl Viro #define __ARCH_WANT_SYS_CLONE
40f3268edbSAl Viro #define __ARCH_WANT_SYS_VFORK
41f3268edbSAl Viro #ifdef CONFIG_MMU
42f3268edbSAl Viro #define __ARCH_WANT_SYS_FORK
43f3268edbSAl Viro #endif
44dd0105a6SMichal Simek 
45dd0105a6SMichal Simek /*
46dd0105a6SMichal Simek  * "Conditional" syscalls
47dd0105a6SMichal Simek  *
48dd0105a6SMichal Simek  * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
49dd0105a6SMichal Simek  * but it doesn't work on all toolchains, so we just do it by hand
50dd0105a6SMichal Simek  */
51dd0105a6SMichal Simek #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
52dd0105a6SMichal Simek 
53dd0105a6SMichal Simek #endif /* __ASSEMBLY__ */
54dd0105a6SMichal Simek #endif /* _ASM_MICROBLAZE_UNISTD_H */
55