hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/x86/include/asm/unistd.h
....@@ -5,12 +5,6 @@
55 #include <uapi/asm/unistd.h>
66
77
8
-# ifdef CONFIG_X86_X32_ABI
9
-# define __SYSCALL_MASK (~(__X32_SYSCALL_BIT))
10
-# else
11
-# define __SYSCALL_MASK (~0)
12
-# endif
13
-
148 # ifdef CONFIG_X86_32
159
1610 # include <asm/unistd_32.h>
....@@ -19,11 +13,15 @@
1913 # define __ARCH_WANT_SYS_OLD_MMAP
2014 # define __ARCH_WANT_SYS_OLD_SELECT
2115
16
+# define __NR_ia32_syscall_max __NR_syscall_max
17
+
2218 # else
2319
2420 # include <asm/unistd_64.h>
2521 # include <asm/unistd_64_x32.h>
26
-# define __ARCH_WANT_COMPAT_SYS_TIME
22
+# include <asm/unistd_32_ia32.h>
23
+# define __ARCH_WANT_SYS_TIME
24
+# define __ARCH_WANT_SYS_UTIME
2725 # define __ARCH_WANT_COMPAT_SYS_PREADV64
2826 # define __ARCH_WANT_COMPAT_SYS_PWRITEV64
2927 # define __ARCH_WANT_COMPAT_SYS_PREADV64V2
....@@ -31,13 +29,17 @@
3129
3230 # endif
3331
32
+# 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
+
36
+# define __ARCH_WANT_NEW_STAT
3437 # define __ARCH_WANT_OLD_READDIR
3538 # define __ARCH_WANT_OLD_STAT
3639 # define __ARCH_WANT_SYS_ALARM
3740 # define __ARCH_WANT_SYS_FADVISE64
3841 # define __ARCH_WANT_SYS_GETHOSTNAME
3942 # define __ARCH_WANT_SYS_GETPGRP
40
-# define __ARCH_WANT_SYS_LLSEEK
4143 # define __ARCH_WANT_SYS_NICE
4244 # define __ARCH_WANT_SYS_OLDUMOUNT
4345 # define __ARCH_WANT_SYS_OLD_GETRLIMIT
....@@ -47,11 +49,12 @@
4749 # define __ARCH_WANT_SYS_SIGPENDING
4850 # define __ARCH_WANT_SYS_SIGPROCMASK
4951 # define __ARCH_WANT_SYS_SOCKETCALL
50
-# define __ARCH_WANT_SYS_TIME
51
-# define __ARCH_WANT_SYS_UTIME
52
+# define __ARCH_WANT_SYS_TIME32
53
+# define __ARCH_WANT_SYS_UTIME32
5254 # define __ARCH_WANT_SYS_WAITPID
5355 # define __ARCH_WANT_SYS_FORK
5456 # define __ARCH_WANT_SYS_VFORK
5557 # define __ARCH_WANT_SYS_CLONE
58
+# define __ARCH_WANT_SYS_CLONE3
5659
5760 #endif /* _ASM_X86_UNISTD_H */