blob: 51c4eee007329b8bc7ce138722dad39d67766ddf [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
H. Peter Anvin303395a2011-11-11 16:07:41 -08002#ifndef _ASM_X86_UNISTD_H
3#define _ASM_X86_UNISTD_H 1
4
David Howellsaf170c52012-12-14 22:37:13 +00005#include <uapi/asm/unistd.h>
H. Peter Anvin6cbb3692012-02-14 14:38:31 -08006
H. Peter Anvinfca460f2012-02-19 07:56:26 -08007
8# ifdef CONFIG_X86_X32_ABI
9# define __SYSCALL_MASK (~(__X32_SYSCALL_BIT))
10# else
11# define __SYSCALL_MASK (~0)
12# endif
13
Adrian Bunkb11caa72008-04-20 22:02:17 +030014# ifdef CONFIG_X86_32
H. Peter Anvin303395a2011-11-11 16:07:41 -080015
16# include <asm/unistd_32.h>
H. Peter Anvin303395a2011-11-11 16:07:41 -080017# define __ARCH_WANT_STAT64
H. Peter Anvin4f2f81a2012-01-19 12:41:25 -080018# define __ARCH_WANT_SYS_IPC
H. Peter Anvin303395a2011-11-11 16:07:41 -080019# define __ARCH_WANT_SYS_OLD_MMAP
20# define __ARCH_WANT_SYS_OLD_SELECT
21
Adrian Bunkb11caa72008-04-20 22:02:17 +030022# else
H. Peter Anvin303395a2011-11-11 16:07:41 -080023
24# include <asm/unistd_64.h>
H. Peter Anvinea499fe2012-02-14 14:46:23 -080025# include <asm/unistd_64_x32.h>
H. Peter Anvin303395a2011-11-11 16:07:41 -080026# define __ARCH_WANT_COMPAT_SYS_TIME
Heiko Carstens378a10f2014-03-05 10:43:51 +010027# define __ARCH_WANT_COMPAT_SYS_PREADV64
28# define __ARCH_WANT_COMPAT_SYS_PWRITEV64
H.J. Lu3ebfd812016-07-14 12:31:53 -070029# define __ARCH_WANT_COMPAT_SYS_PREADV64V2
30# define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2
H. Peter Anvin303395a2011-11-11 16:07:41 -080031
Adrian Bunkb11caa72008-04-20 22:02:17 +030032# endif
H. Peter Anvin303395a2011-11-11 16:07:41 -080033
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 Anvin303395a2011-11-11 16:07:41 -080046# 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 Viro1d4b4b22012-10-22 22:34:11 -040053# define __ARCH_WANT_SYS_FORK
54# define __ARCH_WANT_SYS_VFORK
55# define __ARCH_WANT_SYS_CLONE
H. Peter Anvin303395a2011-11-11 16:07:41 -080056
H. Peter Anvin303395a2011-11-11 16:07:41 -080057#endif /* _ASM_X86_UNISTD_H */