xref: /openbmc/linux/arch/x86/include/asm/unistd.h (revision ae213c44)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_X86_UNISTD_H
3 #define _ASM_X86_UNISTD_H 1
4 
5 #include <uapi/asm/unistd.h>
6 
7 
8 # ifdef CONFIG_X86_X32_ABI
9 #  define __SYSCALL_MASK (~(__X32_SYSCALL_BIT))
10 # else
11 #  define __SYSCALL_MASK (~0)
12 # endif
13 
14 # ifdef CONFIG_X86_32
15 
16 #  include <asm/unistd_32.h>
17 #  define __ARCH_WANT_STAT64
18 #  define __ARCH_WANT_SYS_IPC
19 #  define __ARCH_WANT_SYS_OLD_MMAP
20 #  define __ARCH_WANT_SYS_OLD_SELECT
21 
22 # else
23 
24 #  include <asm/unistd_64.h>
25 #  include <asm/unistd_64_x32.h>
26 #  define __ARCH_WANT_SYS_TIME
27 #  define __ARCH_WANT_SYS_UTIME
28 #  define __ARCH_WANT_COMPAT_SYS_PREADV64
29 #  define __ARCH_WANT_COMPAT_SYS_PWRITEV64
30 #  define __ARCH_WANT_COMPAT_SYS_PREADV64V2
31 #  define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2
32 
33 # endif
34 
35 # define __ARCH_WANT_NEW_STAT
36 # define __ARCH_WANT_OLD_READDIR
37 # define __ARCH_WANT_OLD_STAT
38 # define __ARCH_WANT_SYS_ALARM
39 # define __ARCH_WANT_SYS_FADVISE64
40 # define __ARCH_WANT_SYS_GETHOSTNAME
41 # define __ARCH_WANT_SYS_GETPGRP
42 # define __ARCH_WANT_SYS_NICE
43 # define __ARCH_WANT_SYS_OLDUMOUNT
44 # define __ARCH_WANT_SYS_OLD_GETRLIMIT
45 # define __ARCH_WANT_SYS_OLD_UNAME
46 # define __ARCH_WANT_SYS_PAUSE
47 # define __ARCH_WANT_SYS_SIGNAL
48 # define __ARCH_WANT_SYS_SIGPENDING
49 # define __ARCH_WANT_SYS_SIGPROCMASK
50 # define __ARCH_WANT_SYS_SOCKETCALL
51 # define __ARCH_WANT_SYS_TIME32
52 # define __ARCH_WANT_SYS_UTIME32
53 # define __ARCH_WANT_SYS_WAITPID
54 # define __ARCH_WANT_SYS_FORK
55 # define __ARCH_WANT_SYS_VFORK
56 # define __ARCH_WANT_SYS_CLONE
57 
58 #endif /* _ASM_X86_UNISTD_H */
59