burying unused conditionals
[linux-3.10.git] / arch / microblaze / include / asm / unistd.h
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_CLONE
37 #define __ARCH_WANT_SYS_VFORK
38 #define __ARCH_WANT_SYS_FORK
39
40 /*
41  * "Conditional" syscalls
42  *
43  * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
44  * but it doesn't work on all toolchains, so we just do it by hand
45  */
46 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
47
48 #endif /* __ASSEMBLY__ */
49 #endif /* _ASM_MICROBLAZE_UNISTD_H */