x32: Handle process creation
[deliverable/linux.git] / arch / x86 / kernel / syscall_64.c
CommitLineData
325f86ec 1/* System call table for x86-64. */
1da177e4
LT
2
3#include <linux/linkage.h>
4#include <linux/sys.h>
5#include <linux/cache.h>
57a4f91a 6#include <asm/asm-offsets.h>
1da177e4 7
6630f11b
PA
8#define __SYSCALL_COMMON(nr, sym, compat) __SYSCALL_64(nr, sym, compat)
9#define __SYSCALL_X32(nr, sym, compat) /* Not yet */
10
303395ac
PA
11#define __SYSCALL_64(nr, sym, compat) extern asmlinkage void sym(void) ;
12#include <asm/syscalls_64.h>
13#undef __SYSCALL_64
1da177e4 14
303395ac 15#define __SYSCALL_64(nr, sym, compat) [nr] = sym,
1da177e4 16
325f86ec 17typedef void (*sys_call_ptr_t)(void);
1da177e4
LT
18
19extern void sys_ni_syscall(void);
20
bb152f53 21const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
325f86ec 22 /*
b7641d2c
PA
23 * Smells like a compiler bug -- it doesn't work
24 * when the & below is removed.
25 */
1da177e4 26 [0 ... __NR_syscall_max] = &sys_ni_syscall,
303395ac 27#include <asm/syscalls_64.h>
1da177e4 28};
This page took 0.528984 seconds and 5 git commands to generate.