summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/syscall_64.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-02-19 23:08:37 +0400
committerH. Peter Anvin <hpa@zytor.com>2012-02-21 00:52:06 +0400
commita06c9bc0647f66df0534fb887ddf6cddd35f426c (patch)
tree331f629c2771c81cc280ae8b769f00bdc0fb77d0 /arch/x86/kernel/syscall_64.c
parentd1a797f388d6d30fa502915d1b9937ed758b7137 (diff)
downloadlinux-a06c9bc0647f66df0534fb887ddf6cddd35f426c.tar.xz
x32: If configured, add x32 system calls to system call tables
If CONFIG_X86_X32_ABI is defined, add the x32 system calls to the system call tables. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/syscall_64.c')
-rw-r--r--arch/x86/kernel/syscall_64.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/x86/kernel/syscall_64.c b/arch/x86/kernel/syscall_64.c
index 26c4ca1f20e8..5c7f8c20da74 100644
--- a/arch/x86/kernel/syscall_64.c
+++ b/arch/x86/kernel/syscall_64.c
@@ -6,7 +6,12 @@
#include <asm/asm-offsets.h>
#define __SYSCALL_COMMON(nr, sym, compat) __SYSCALL_64(nr, sym, compat)
-#define __SYSCALL_X32(nr, sym, compat) /* Not yet */
+
+#ifdef CONFIG_X86_X32_ABI
+# define __SYSCALL_X32(nr, sym, compat) __SYSCALL_64(nr, sym, compat)
+#else
+# define __SYSCALL_X32(nr, sym, compat) /* nothing */
+#endif
#define __SYSCALL_64(nr, sym, compat) extern asmlinkage void sym(void) ;
#include <asm/syscalls_64.h>