x86: Generate system call tables and unistd_*.h from tables
[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
303395ac
PA
8#define __SYSCALL_64(nr, sym, compat) extern asmlinkage void sym(void) ;
9#include <asm/syscalls_64.h>
10#undef __SYSCALL_64
1da177e4 11
303395ac 12#define __SYSCALL_64(nr, sym, compat) [nr] = sym,
1da177e4 13
325f86ec 14typedef void (*sys_call_ptr_t)(void);
1da177e4
LT
15
16extern void sys_ni_syscall(void);
17
bb152f53 18const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
325f86ec 19 /*
b7641d2c
PA
20 * Smells like a compiler bug -- it doesn't work
21 * when the & below is removed.
22 */
1da177e4 23 [0 ... __NR_syscall_max] = &sys_ni_syscall,
303395ac 24#include <asm/syscalls_64.h>
1da177e4 25};
This page took 0.564875 seconds and 5 git commands to generate.