]>
Commit | Line | Data |
---|---|---|
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 LT |
7 | |
8 | #define __NO_STUBS | |
9 | ||
325f86ec | 10 | #define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ; |
1965aae3 | 11 | #undef _ASM_X86_UNISTD_64_H |
96a388de | 12 | #include <asm/unistd_64.h> |
1da177e4 LT |
13 | |
14 | #undef __SYSCALL | |
325f86ec | 15 | #define __SYSCALL(nr, sym) [nr] = sym, |
1965aae3 | 16 | #undef _ASM_X86_UNISTD_64_H |
1da177e4 | 17 | |
325f86ec | 18 | typedef void (*sys_call_ptr_t)(void); |
1da177e4 LT |
19 | |
20 | extern void sys_ni_syscall(void); | |
21 | ||
bb152f53 | 22 | const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = { |
325f86ec PC |
23 | /* |
24 | *Smells like a like a compiler bug -- it doesn't work | |
25 | *when the & below is removed. | |
26 | */ | |
1da177e4 | 27 | [0 ... __NR_syscall_max] = &sys_ni_syscall, |
96a388de | 28 | #include <asm/unistd_64.h> |
1da177e4 | 29 | }; |