File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
arch/x86/include/uapi/asm
tools/arch/x86/include/uapi/asm Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 22#ifndef _UAPI_ASM_X86_UNISTD_H
33#define _UAPI_ASM_X86_UNISTD_H
44
5- /* x32 syscall flag bit */
6- #define __X32_SYSCALL_BIT 0x40000000UL
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+ */
13+ #define __X32_SYSCALL_BIT 0x40000000
714
815#ifndef __KERNEL__
916# ifdef __i386__
Original file line number Diff line number Diff line change 33#define _UAPI_ASM_X86_UNISTD_H
44
55/* x32 syscall flag bit */
6- #define __X32_SYSCALL_BIT 0x40000000UL
6+ #define __X32_SYSCALL_BIT 0x40000000
77
88#ifndef __KERNEL__
99# ifdef __i386__
You can’t perform that action at this time.
0 commit comments