kernel/tools/arch/x86/include/uapi/asm/unistd.h
.. .. @@ -2,7 +2,14 @@ 2 2 #ifndef _UAPI_ASM_X86_UNISTD_H 3 3 #define _UAPI_ASM_X86_UNISTD_H 4 4 5 -/* x32 syscall flag bit */5 +/*6 + * x32 syscall flag bit. Some user programs expect syscall NR macros7 + * and __X32_SYSCALL_BIT to have type int, even though syscall numbers8 + * are, for practical purposes, unsigned long.9 + *10 + * Fortunately, expressions like (nr & ~__X32_SYSCALL_BIT) do the right11 + * thing regardless.12 + */6 13 #define __X32_SYSCALL_BIT 0x40000000 7 14 8 15 #ifndef __KERNEL__