forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 748e4f3d702def1a4bff191e0cf93b6a05340f01
kernel/arch/x86/include/uapi/asm/unistd.h
....@@ -2,7 +2,14 @@
22 #ifndef _UAPI_ASM_X86_UNISTD_H
33 #define _UAPI_ASM_X86_UNISTD_H
44
5
-/* x32 syscall flag bit */
5
+/*
6
+ * x32 syscall flag bit. Some user programs expect syscall NR macros
7
+ * and __X32_SYSCALL_BIT to have type int, even though syscall numbers
8
+ * are, for practical purposes, unsigned long.
9
+ *
10
+ * Fortunately, expressions like (nr & ~__X32_SYSCALL_BIT) do the right
11
+ * thing regardless.
12
+ */
613 #define __X32_SYSCALL_BIT 0x40000000
714
815 #ifndef __KERNEL__