Remove obsolete #include <linux/config.h>
[linux-2.6/verdex.git] / arch / um / sys-x86_64 / syscall_table.c
blob67ba024581e9823e32db1b9b5a22d7b9d3247b9a
1 /* System call table for UML/x86-64, copied from arch/x86_64/kernel/syscall.c
2 * with some changes for UML. */
4 #include <linux/linkage.h>
5 #include <linux/sys.h>
6 #include <linux/cache.h>
8 #define __NO_STUBS
10 /* Below you can see, in terms of #define's, the differences between the x86-64
11 * and the UML syscall table. */
13 /* Not going to be implemented by UML, since we have no hardware. */
14 #define stub_iopl sys_ni_syscall
15 #define sys_ioperm sys_ni_syscall
17 /* The UML TLS problem. Note that x86_64 does not implement this, so the below
18 * is needed only for the ia32 compatibility. */
19 /*#define sys_set_thread_area sys_ni_syscall
20 #define sys_get_thread_area sys_ni_syscall*/
22 /* For __NR_time. The x86-64 name hopefully will change from sys_time64 to
23 * sys_time (since the current situation is bogus). I've sent a patch to cleanup
24 * this. Remove below the obsoleted line. */
25 #define sys_time64 um_time
26 #define sys_time um_time
28 /* On UML we call it this way ("old" means it's not mmap2) */
29 #define sys_mmap old_mmap
30 /* On x86-64 sys_uname is actually sys_newuname plus a compatibility trick.
31 * See arch/x86_64/kernel/sys_x86_64.c */
32 #define sys_uname sys_uname64
34 #define stub_clone sys_clone
35 #define stub_fork sys_fork
36 #define stub_vfork sys_vfork
37 #define stub_execve sys_execve
38 #define stub_rt_sigsuspend sys_rt_sigsuspend
39 #define stub_sigaltstack sys_sigaltstack
40 #define stub_rt_sigreturn sys_rt_sigreturn
42 #define __SYSCALL(nr, sym) extern asmlinkage void sym(void) ;
43 #undef _ASM_X86_64_UNISTD_H_
44 #include <asm-x86_64/unistd.h>
46 #undef __SYSCALL
47 #define __SYSCALL(nr, sym) [ nr ] = sym,
48 #undef _ASM_X86_64_UNISTD_H_
50 typedef void (*sys_call_ptr_t)(void);
52 extern void sys_ni_syscall(void);
54 sys_call_ptr_t sys_call_table[__NR_syscall_max+1] __cacheline_aligned = {
55 /* Smells like a like a compiler bug -- it doesn't work when the & below is removed. */
56 [0 ... __NR_syscall_max] = &sys_ni_syscall,
57 #include <asm-x86_64/unistd.h>