Merge tag 'x86-cleanups-2020-06-01' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / arch / x86 / include / uapi / asm / unistd.h
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI_ASM_X86_UNISTD_H
3 #define _UAPI_ASM_X86_UNISTD_H
4
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
14
15 #ifndef __KERNEL__
16 # ifdef __i386__
17 #  include <asm/unistd_32.h>
18 # elif defined(__ILP32__)
19 #  include <asm/unistd_x32.h>
20 # else
21 #  include <asm/unistd_64.h>
22 # endif
23 #endif
24
25 #endif /* _UAPI_ASM_X86_UNISTD_H */