]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
303395ac PA |
2 | #ifndef _ASM_X86_UNISTD_H |
3 | #define _ASM_X86_UNISTD_H 1 | |
4 | ||
af170c50 | 5 | #include <uapi/asm/unistd.h> |
6cbb369f | 6 | |
fca460f9 PA |
7 | |
8 | # ifdef CONFIG_X86_X32_ABI | |
9 | # define __SYSCALL_MASK (~(__X32_SYSCALL_BIT)) | |
10 | # else | |
11 | # define __SYSCALL_MASK (~0) | |
12 | # endif | |
13 | ||
b11caa7c | 14 | # ifdef CONFIG_X86_32 |
303395ac PA |
15 | |
16 | # include <asm/unistd_32.h> | |
303395ac | 17 | # define __ARCH_WANT_STAT64 |
4f2f81a5 | 18 | # define __ARCH_WANT_SYS_IPC |
303395ac PA |
19 | # define __ARCH_WANT_SYS_OLD_MMAP |
20 | # define __ARCH_WANT_SYS_OLD_SELECT | |
21 | ||
b11caa7c | 22 | # else |
303395ac PA |
23 | |
24 | # include <asm/unistd_64.h> | |
ea499fec | 25 | # include <asm/unistd_64_x32.h> |
303395ac | 26 | # define __ARCH_WANT_COMPAT_SYS_TIME |
378a10f3 HC |
27 | # define __ARCH_WANT_COMPAT_SYS_PREADV64 |
28 | # define __ARCH_WANT_COMPAT_SYS_PWRITEV64 | |
3ebfd81f L |
29 | # define __ARCH_WANT_COMPAT_SYS_PREADV64V2 |
30 | # define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2 | |
303395ac | 31 | |
b11caa7c | 32 | # endif |
303395ac PA |
33 | |
34 | # define __ARCH_WANT_OLD_READDIR | |
35 | # define __ARCH_WANT_OLD_STAT | |
36 | # define __ARCH_WANT_SYS_ALARM | |
37 | # define __ARCH_WANT_SYS_FADVISE64 | |
38 | # define __ARCH_WANT_SYS_GETHOSTNAME | |
39 | # define __ARCH_WANT_SYS_GETPGRP | |
40 | # define __ARCH_WANT_SYS_LLSEEK | |
41 | # define __ARCH_WANT_SYS_NICE | |
42 | # define __ARCH_WANT_SYS_OLDUMOUNT | |
43 | # define __ARCH_WANT_SYS_OLD_GETRLIMIT | |
44 | # define __ARCH_WANT_SYS_OLD_UNAME | |
45 | # define __ARCH_WANT_SYS_PAUSE | |
303395ac PA |
46 | # define __ARCH_WANT_SYS_SIGNAL |
47 | # define __ARCH_WANT_SYS_SIGPENDING | |
48 | # define __ARCH_WANT_SYS_SIGPROCMASK | |
49 | # define __ARCH_WANT_SYS_SOCKETCALL | |
50 | # define __ARCH_WANT_SYS_TIME | |
51 | # define __ARCH_WANT_SYS_UTIME | |
52 | # define __ARCH_WANT_SYS_WAITPID | |
1d4b4b29 AV |
53 | # define __ARCH_WANT_SYS_FORK |
54 | # define __ARCH_WANT_SYS_VFORK | |
55 | # define __ARCH_WANT_SYS_CLONE | |
303395ac | 56 | |
303395ac | 57 | #endif /* _ASM_X86_UNISTD_H */ |