1 #ifndef _ASM_X86_UNISTD_H
2 #define _ASM_X86_UNISTD_H 1
4 #include <uapi/asm/unistd.h>
7 # ifdef CONFIG_X86_X32_ABI
8 # define __SYSCALL_MASK (~(__X32_SYSCALL_BIT))
10 # define __SYSCALL_MASK (~0)
15 # include <asm/unistd_32.h>
16 # define __ARCH_WANT_STAT64
17 # define __ARCH_WANT_SYS_IPC
18 # define __ARCH_WANT_SYS_OLD_MMAP
19 # define __ARCH_WANT_SYS_OLD_SELECT
23 # include <asm/unistd_64.h>
24 # include <asm/unistd_64_x32.h>
25 # define __ARCH_WANT_COMPAT_SYS_TIME
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
41 # define __ARCH_WANT_SYS_RT_SIGACTION
42 # define __ARCH_WANT_SYS_RT_SIGSUSPEND
43 # define __ARCH_WANT_SYS_SGETMASK
44 # define __ARCH_WANT_SYS_SIGNAL
45 # define __ARCH_WANT_SYS_SIGPENDING
46 # define __ARCH_WANT_SYS_SIGPROCMASK
47 # define __ARCH_WANT_SYS_SOCKETCALL
48 # define __ARCH_WANT_SYS_TIME
49 # define __ARCH_WANT_SYS_UTIME
50 # define __ARCH_WANT_SYS_WAITPID
51 # define __ARCH_WANT_SYS_FORK
52 # define __ARCH_WANT_SYS_VFORK
53 # define __ARCH_WANT_SYS_CLONE
56 * "Conditional" syscalls
58 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
59 * but it doesn't work on all toolchains, so we just do it by hand
61 # define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
63 #endif /* _ASM_X86_UNISTD_H */