Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 2 | #ifndef _ASM_X86_UNISTD_H |
| 3 | #define _ASM_X86_UNISTD_H 1 |
| 4 | |
David Howells | af170c5 | 2012-12-14 22:37:13 +0000 | [diff] [blame] | 5 | #include <uapi/asm/unistd.h> |
H. Peter Anvin | 6cbb369 | 2012-02-14 14:38:31 -0800 | [diff] [blame] | 6 | |
H. Peter Anvin | fca460f | 2012-02-19 07:56:26 -0800 | [diff] [blame] | 7 | |
| 8 | # ifdef CONFIG_X86_X32_ABI |
| 9 | # define __SYSCALL_MASK (~(__X32_SYSCALL_BIT)) |
| 10 | # else |
| 11 | # define __SYSCALL_MASK (~0) |
| 12 | # endif |
| 13 | |
Adrian Bunk | b11caa7 | 2008-04-20 22:02:17 +0300 | [diff] [blame] | 14 | # ifdef CONFIG_X86_32 |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 15 | |
| 16 | # include <asm/unistd_32.h> |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 17 | # define __ARCH_WANT_STAT64 |
H. Peter Anvin | 4f2f81a | 2012-01-19 12:41:25 -0800 | [diff] [blame] | 18 | # define __ARCH_WANT_SYS_IPC |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 19 | # define __ARCH_WANT_SYS_OLD_MMAP |
| 20 | # define __ARCH_WANT_SYS_OLD_SELECT |
| 21 | |
Adrian Bunk | b11caa7 | 2008-04-20 22:02:17 +0300 | [diff] [blame] | 22 | # else |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 23 | |
| 24 | # include <asm/unistd_64.h> |
H. Peter Anvin | ea499fe | 2012-02-14 14:46:23 -0800 | [diff] [blame] | 25 | # include <asm/unistd_64_x32.h> |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 26 | # define __ARCH_WANT_COMPAT_SYS_TIME |
Heiko Carstens | 378a10f | 2014-03-05 10:43:51 +0100 | [diff] [blame] | 27 | # define __ARCH_WANT_COMPAT_SYS_PREADV64 |
| 28 | # define __ARCH_WANT_COMPAT_SYS_PWRITEV64 |
H.J. Lu | 3ebfd81 | 2016-07-14 12:31:53 -0700 | [diff] [blame] | 29 | # define __ARCH_WANT_COMPAT_SYS_PREADV64V2 |
| 30 | # define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2 |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 31 | |
Adrian Bunk | b11caa7 | 2008-04-20 22:02:17 +0300 | [diff] [blame] | 32 | # endif |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 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 |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 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 |
Al Viro | 1d4b4b2 | 2012-10-22 22:34:11 -0400 | [diff] [blame] | 53 | # define __ARCH_WANT_SYS_FORK |
| 54 | # define __ARCH_WANT_SYS_VFORK |
| 55 | # define __ARCH_WANT_SYS_CLONE |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 56 | |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 57 | #endif /* _ASM_X86_UNISTD_H */ |