diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-02-19 20:08:37 +0100 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-02-20 21:52:06 +0100 |
commit | a06c9bc0647f66df0534fb887ddf6cddd35f426c (patch) | |
tree | 331f629c2771c81cc280ae8b769f00bdc0fb77d0 /arch/x86/kernel/asm-offsets_64.c | |
parent | x32: Handle process creation (diff) | |
download | linux-a06c9bc0647f66df0534fb887ddf6cddd35f426c.tar.xz linux-a06c9bc0647f66df0534fb887ddf6cddd35f426c.zip |
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/asm-offsets_64.c')
-rw-r--r-- | arch/x86/kernel/asm-offsets_64.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/x86/kernel/asm-offsets_64.c b/arch/x86/kernel/asm-offsets_64.c index c3354f7b0a06..1b4754f82ba7 100644 --- a/arch/x86/kernel/asm-offsets_64.c +++ b/arch/x86/kernel/asm-offsets_64.c @@ -2,7 +2,11 @@ #define __SYSCALL_64(nr, sym, compat) [nr] = 1, #define __SYSCALL_COMMON(nr, sym, compat) [nr] = 1, -#define __SYSCALL_X32(nr, sym, compat) /* Not yet */ +#ifdef CONFIG_X86_X32_ABI +# define __SYSCALL_X32(nr, sym, compat) [nr] = 1, +#else +# define __SYSCALL_X32(nr, sym, compat) /* nothing */ +#endif static char syscalls_64[] = { #include <asm/syscalls_64.h> }; |