Merge tag 'cleanup2' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[cascardo/linux.git] / arch / x86 / kernel / syscall_64.c
1 /* System call table for x86-64. */
2
3 #include <linux/linkage.h>
4 #include <linux/sys.h>
5 #include <linux/cache.h>
6 #include <asm/asm-offsets.h>
7
8 #define __SYSCALL_64(nr, sym, compat) extern asmlinkage void sym(void) ;
9 #include <asm/syscalls_64.h>
10 #undef __SYSCALL_64
11
12 #define __SYSCALL_64(nr, sym, compat) [nr] = sym,
13
14 typedef void (*sys_call_ptr_t)(void);
15
16 extern void sys_ni_syscall(void);
17
18 const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
19         /*
20          * Smells like a compiler bug -- it doesn't work
21          * when the & below is removed.
22          */
23         [0 ... __NR_syscall_max] = &sys_ni_syscall,
24 #include <asm/syscalls_64.h>
25 };