hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/tools/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__