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