diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-02-14 14:38:31 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-02-20 12:51:00 -0800 |
commit | 6cbb369f578378cf5b1876766d860ae7c2a94d60 (patch) | |
tree | 0006e59ecea7023014dd619cb4199eb342b60fb7 /arch/x86/include/asm/unistd.h | |
parent | 6630f11ba54414b9870d87dfef2bee467bfa842a (diff) | |
download | blackbird-obmc-linux-6cbb369f578378cf5b1876766d860ae7c2a94d60.tar.gz blackbird-obmc-linux-6cbb369f578378cf5b1876766d860ae7c2a94d60.zip |
x32: Generate <asm/unistd_x32.h>
Generate <asm/unistd_x32.h>; this exports x32 system call numbers to
user space.
[ v2: Enclose all arguments to syshdr in '' so empty arguments aren't
dropped on the floor. ]
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include/asm/unistd.h')
-rw-r--r-- | arch/x86/include/asm/unistd.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/include/asm/unistd.h b/arch/x86/include/asm/unistd.h index 21f77b89e47a..dab5349f14fc 100644 --- a/arch/x86/include/asm/unistd.h +++ b/arch/x86/include/asm/unistd.h @@ -1,6 +1,9 @@ #ifndef _ASM_X86_UNISTD_H #define _ASM_X86_UNISTD_H 1 +/* x32 syscall flag bit */ +#define __X32_SYSCALL_BIT 0x40000000 + #ifdef __KERNEL__ # ifdef CONFIG_X86_32 @@ -52,8 +55,10 @@ #else # ifdef __i386__ # include <asm/unistd_32.h> -# else +# elif defined(__LP64__) # include <asm/unistd_64.h> +# else +# include <asm/unistd_x32.h> # endif #endif |