Merge tag 'cleanup2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[cascardo/linux.git] / arch / x86 / include / asm / unistd.h
1 #ifndef _ASM_X86_UNISTD_H
2 #define _ASM_X86_UNISTD_H 1
3
4 #ifdef __KERNEL__
5 # ifdef CONFIG_X86_32
6
7 #  include <asm/unistd_32.h>
8 #  define __ARCH_WANT_IPC_PARSE_VERSION
9 #  define __ARCH_WANT_STAT64
10 #  define __ARCH_WANT_SYS_IPC
11 #  define __ARCH_WANT_SYS_OLD_MMAP
12 #  define __ARCH_WANT_SYS_OLD_SELECT
13
14 # else
15
16 #  include <asm/unistd_64.h>
17 #  define __ARCH_WANT_COMPAT_SYS_TIME
18
19 # endif
20
21 # define __ARCH_WANT_OLD_READDIR
22 # define __ARCH_WANT_OLD_STAT
23 # define __ARCH_WANT_SYS_ALARM
24 # define __ARCH_WANT_SYS_FADVISE64
25 # define __ARCH_WANT_SYS_GETHOSTNAME
26 # define __ARCH_WANT_SYS_GETPGRP
27 # define __ARCH_WANT_SYS_LLSEEK
28 # define __ARCH_WANT_SYS_NICE
29 # define __ARCH_WANT_SYS_OLDUMOUNT
30 # define __ARCH_WANT_SYS_OLD_GETRLIMIT
31 # define __ARCH_WANT_SYS_OLD_UNAME
32 # define __ARCH_WANT_SYS_PAUSE
33 # define __ARCH_WANT_SYS_RT_SIGACTION
34 # define __ARCH_WANT_SYS_RT_SIGSUSPEND
35 # define __ARCH_WANT_SYS_SGETMASK
36 # define __ARCH_WANT_SYS_SIGNAL
37 # define __ARCH_WANT_SYS_SIGPENDING
38 # define __ARCH_WANT_SYS_SIGPROCMASK
39 # define __ARCH_WANT_SYS_SOCKETCALL
40 # define __ARCH_WANT_SYS_TIME
41 # define __ARCH_WANT_SYS_UTIME
42 # define __ARCH_WANT_SYS_WAITPID
43
44 /*
45  * "Conditional" syscalls
46  *
47  * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
48  * but it doesn't work on all toolchains, so we just do it by hand
49  */
50 # define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
51
52 #else
53 # ifdef __i386__
54 #  include <asm/unistd_32.h>
55 # else
56 #  include <asm/unistd_64.h>
57 # endif
58 #endif
59
60 #endif /* _ASM_X86_UNISTD_H */