1 /* System call table for x86-64. */
3 #include <linux/linkage.h>
5 #include <linux/cache.h>
6 #include <asm/asm-offsets.h>
8 #define __SYSCALL_COMMON(nr, sym, compat) __SYSCALL_64(nr, sym, compat)
10 #ifdef CONFIG_X86_X32_ABI
11 # define __SYSCALL_X32(nr, sym, compat) __SYSCALL_64(nr, sym, compat)
13 # define __SYSCALL_X32(nr, sym, compat) /* nothing */
16 #define __SYSCALL_64(nr, sym, compat) extern asmlinkage void sym(void) ;
17 #include <asm/syscalls_64.h>
20 #define __SYSCALL_64(nr, sym, compat) [nr] = sym,
22 typedef void (*sys_call_ptr_t
)(void);
24 extern void sys_ni_syscall(void);
26 const sys_call_ptr_t sys_call_table
[__NR_syscall_max
+1] = {
28 * Smells like a compiler bug -- it doesn't work
29 * when the & below is removed.
31 [0 ... __NR_syscall_max
] = &sys_ni_syscall
,
32 #include <asm/syscalls_64.h>