blob: c1c3d31b15c0650f5c6feef4eef01cc7d81f1f2e [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* 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
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00008# ifdef CONFIG_X86_32
9
10# include <asm/unistd_32.h>
11# define __ARCH_WANT_STAT64
12# define __ARCH_WANT_SYS_IPC
13# define __ARCH_WANT_SYS_OLD_MMAP
14# define __ARCH_WANT_SYS_OLD_SELECT
15
Olivier Deprez157378f2022-04-04 15:47:50 +020016# define __NR_ia32_syscall_max __NR_syscall_max
17
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000018# else
19
20# include <asm/unistd_64.h>
21# include <asm/unistd_64_x32.h>
Olivier Deprez157378f2022-04-04 15:47:50 +020022# include <asm/unistd_32_ia32.h>
David Brazdil0f672f62019-12-10 10:32:29 +000023# define __ARCH_WANT_SYS_TIME
24# define __ARCH_WANT_SYS_UTIME
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000025# define __ARCH_WANT_COMPAT_SYS_PREADV64
26# define __ARCH_WANT_COMPAT_SYS_PWRITEV64
27# define __ARCH_WANT_COMPAT_SYS_PREADV64V2
28# define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2
29
30# endif
31
Olivier Deprez157378f2022-04-04 15:47:50 +020032# define NR_syscalls (__NR_syscall_max + 1)
33# define X32_NR_syscalls (__NR_x32_syscall_max + 1)
34# define IA32_NR_syscalls (__NR_ia32_syscall_max + 1)
35
David Brazdil0f672f62019-12-10 10:32:29 +000036# define __ARCH_WANT_NEW_STAT
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000037# define __ARCH_WANT_OLD_READDIR
38# define __ARCH_WANT_OLD_STAT
39# define __ARCH_WANT_SYS_ALARM
40# define __ARCH_WANT_SYS_FADVISE64
41# define __ARCH_WANT_SYS_GETHOSTNAME
42# define __ARCH_WANT_SYS_GETPGRP
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000043# define __ARCH_WANT_SYS_NICE
44# define __ARCH_WANT_SYS_OLDUMOUNT
45# define __ARCH_WANT_SYS_OLD_GETRLIMIT
46# define __ARCH_WANT_SYS_OLD_UNAME
47# define __ARCH_WANT_SYS_PAUSE
48# define __ARCH_WANT_SYS_SIGNAL
49# define __ARCH_WANT_SYS_SIGPENDING
50# define __ARCH_WANT_SYS_SIGPROCMASK
51# define __ARCH_WANT_SYS_SOCKETCALL
David Brazdil0f672f62019-12-10 10:32:29 +000052# define __ARCH_WANT_SYS_TIME32
53# define __ARCH_WANT_SYS_UTIME32
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000054# define __ARCH_WANT_SYS_WAITPID
55# define __ARCH_WANT_SYS_FORK
56# define __ARCH_WANT_SYS_VFORK
57# define __ARCH_WANT_SYS_CLONE
David Brazdil0f672f62019-12-10 10:32:29 +000058# define __ARCH_WANT_SYS_CLONE3
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000059
60#endif /* _ASM_X86_UNISTD_H */