blob: c2a48139c3401b5d0202a83c676242119106b1f2 [file] [log] [blame]
H. Peter Anvin303395a2011-11-11 16:07:41 -08001#ifndef _ASM_X86_UNISTD_H
2#define _ASM_X86_UNISTD_H 1
3
David Howellsaf170c52012-12-14 22:37:13 +00004#include <uapi/asm/unistd.h>
H. Peter Anvin6cbb3692012-02-14 14:38:31 -08005
H. Peter Anvinfca460f2012-02-19 07:56:26 -08006
7# ifdef CONFIG_X86_X32_ABI
8# define __SYSCALL_MASK (~(__X32_SYSCALL_BIT))
9# else
10# define __SYSCALL_MASK (~0)
11# endif
12
Adrian Bunkb11caa72008-04-20 22:02:17 +030013# ifdef CONFIG_X86_32
H. Peter Anvin303395a2011-11-11 16:07:41 -080014
15# include <asm/unistd_32.h>
H. Peter Anvin303395a2011-11-11 16:07:41 -080016# define __ARCH_WANT_STAT64
H. Peter Anvin4f2f81a2012-01-19 12:41:25 -080017# define __ARCH_WANT_SYS_IPC
H. Peter Anvin303395a2011-11-11 16:07:41 -080018# define __ARCH_WANT_SYS_OLD_MMAP
19# define __ARCH_WANT_SYS_OLD_SELECT
20
Adrian Bunkb11caa72008-04-20 22:02:17 +030021# else
H. Peter Anvin303395a2011-11-11 16:07:41 -080022
23# include <asm/unistd_64.h>
H. Peter Anvinea499fe2012-02-14 14:46:23 -080024# include <asm/unistd_64_x32.h>
H. Peter Anvin303395a2011-11-11 16:07:41 -080025# define __ARCH_WANT_COMPAT_SYS_TIME
26
Adrian Bunkb11caa72008-04-20 22:02:17 +030027# endif
H. Peter Anvin303395a2011-11-11 16:07:41 -080028
29# define __ARCH_WANT_OLD_READDIR
30# define __ARCH_WANT_OLD_STAT
31# define __ARCH_WANT_SYS_ALARM
32# define __ARCH_WANT_SYS_FADVISE64
33# define __ARCH_WANT_SYS_GETHOSTNAME
34# define __ARCH_WANT_SYS_GETPGRP
35# define __ARCH_WANT_SYS_LLSEEK
36# define __ARCH_WANT_SYS_NICE
37# define __ARCH_WANT_SYS_OLDUMOUNT
38# define __ARCH_WANT_SYS_OLD_GETRLIMIT
39# define __ARCH_WANT_SYS_OLD_UNAME
40# define __ARCH_WANT_SYS_PAUSE
H. Peter Anvin303395a2011-11-11 16:07:41 -080041# define __ARCH_WANT_SYS_SGETMASK
42# define __ARCH_WANT_SYS_SIGNAL
43# define __ARCH_WANT_SYS_SIGPENDING
44# define __ARCH_WANT_SYS_SIGPROCMASK
45# define __ARCH_WANT_SYS_SOCKETCALL
46# define __ARCH_WANT_SYS_TIME
47# define __ARCH_WANT_SYS_UTIME
48# define __ARCH_WANT_SYS_WAITPID
Al Viro1d4b4b22012-10-22 22:34:11 -040049# define __ARCH_WANT_SYS_FORK
50# define __ARCH_WANT_SYS_VFORK
51# define __ARCH_WANT_SYS_CLONE
H. Peter Anvin303395a2011-11-11 16:07:41 -080052
H. Peter Anvin303395a2011-11-11 16:07:41 -080053#endif /* _ASM_X86_UNISTD_H */