aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-02-14 17:46:23 -0500
committerH. Peter Anvin <hpa@zytor.com>2012-02-20 15:52:04 -0500
commitea499fec48dd771bd92984337fcb57ed4c787e69 (patch)
treebaeeed85d52a5acec79e63203bcdbf037424346a /arch/x86
parent6cbb369f578378cf5b1876766d860ae7c2a94d60 (diff)
x32: Generate <asm/unistd_64_x32.h>
Generate macros for the *kernel* code to use to refer to x32 system calls. These have an __NR_x32_ prefix and do not include __X32_SYSCALL_BIT. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/unistd.h1
-rw-r--r--arch/x86/syscalls/Makefile7
2 files changed, 7 insertions, 1 deletions
diff --git a/arch/x86/include/asm/unistd.h b/arch/x86/include/asm/unistd.h
index dab5349f14fc..7a48a5557470 100644
--- a/arch/x86/include/asm/unistd.h
+++ b/arch/x86/include/asm/unistd.h
@@ -17,6 +17,7 @@
17# else 17# else
18 18
19# include <asm/unistd_64.h> 19# include <asm/unistd_64.h>
20# include <asm/unistd_64_x32.h>
20# define __ARCH_WANT_COMPAT_SYS_TIME 21# define __ARCH_WANT_COMPAT_SYS_TIME
21 22
22# endif 23# endif
diff --git a/arch/x86/syscalls/Makefile b/arch/x86/syscalls/Makefile
index 8051c3134ad1..3236aebc828d 100644
--- a/arch/x86/syscalls/Makefile
+++ b/arch/x86/syscalls/Makefile
@@ -35,6 +35,11 @@ syshdr_abi_unistd_64 := common,64
35$(out)/unistd_64.h: $(syscall64) $(syshdr) 35$(out)/unistd_64.h: $(syscall64) $(syshdr)
36 $(call if_changed,syshdr) 36 $(call if_changed,syshdr)
37 37
38syshdr_abi_unistd_64_x32 := x32
39syshdr_pfx_unistd_64_x32 := x32_
40$(out)/unistd_64_x32.h: $(syscall64) $(syshdr)
41 $(call if_changed,syshdr)
42
38$(out)/syscalls_32.h: $(syscall32) $(systbl) 43$(out)/syscalls_32.h: $(syscall32) $(systbl)
39 $(call if_changed,systbl) 44 $(call if_changed,systbl)
40$(out)/syscalls_64.h: $(syscall64) $(systbl) 45$(out)/syscalls_64.h: $(syscall64) $(systbl)
@@ -42,7 +47,7 @@ $(out)/syscalls_64.h: $(syscall64) $(systbl)
42 47
43syshdr-y += unistd_32.h unistd_64.h unistd_x32.h 48syshdr-y += unistd_32.h unistd_64.h unistd_x32.h
44syshdr-y += syscalls_32.h 49syshdr-y += syscalls_32.h
45syshdr-$(CONFIG_X86_64) += unistd_32_ia32.h 50syshdr-$(CONFIG_X86_64) += unistd_32_ia32.h unistd_64_x32.h
46syshdr-$(CONFIG_X86_64) += syscalls_64.h 51syshdr-$(CONFIG_X86_64) += syscalls_64.h
47 52
48targets += $(syshdr-y) 53targets += $(syshdr-y)