2 * Copyright (C) 2000 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
6 #include "asm/unistd.h"
7 #include "sysdep/ptrace.h"
9 typedef long syscall_handler_t(struct pt_regs
);
11 #define EXECUTE_SYSCALL(syscall, regs) \
12 ((long (*)(struct syscall_args)) (*sys_call_table[syscall]))(SYSCALL_ARGS(®s->regs))
14 #define ARCH_SYSCALLS \
15 [ __NR_mmap ] = (syscall_handler_t *) old_mmap_i386, \
16 [ __NR_select ] = (syscall_handler_t *) old_select, \
17 [ __NR_vm86old ] = (syscall_handler_t *) sys_ni_syscall, \
18 [ __NR_modify_ldt ] = (syscall_handler_t *) sys_modify_ldt, \
19 [ __NR_lchown32 ] = (syscall_handler_t *) sys_lchown, \
20 [ __NR_getuid32 ] = (syscall_handler_t *) sys_getuid, \
21 [ __NR_getgid32 ] = (syscall_handler_t *) sys_getgid, \
22 [ __NR_geteuid32 ] = (syscall_handler_t *) sys_geteuid, \
23 [ __NR_getegid32 ] = (syscall_handler_t *) sys_getegid, \
24 [ __NR_setreuid32 ] = (syscall_handler_t *) sys_setreuid, \
25 [ __NR_setregid32 ] = (syscall_handler_t *) sys_setregid, \
26 [ __NR_getgroups32 ] = (syscall_handler_t *) sys_getgroups, \
27 [ __NR_setgroups32 ] = (syscall_handler_t *) sys_setgroups, \
28 [ __NR_fchown32 ] = (syscall_handler_t *) sys_fchown, \
29 [ __NR_setresuid32 ] = (syscall_handler_t *) sys_setresuid, \
30 [ __NR_getresuid32 ] = (syscall_handler_t *) sys_getresuid, \
31 [ __NR_setresgid32 ] = (syscall_handler_t *) sys_setresgid, \
32 [ __NR_getresgid32 ] = (syscall_handler_t *) sys_getresgid, \
33 [ __NR_chown32 ] = (syscall_handler_t *) sys_chown, \
34 [ __NR_setuid32 ] = (syscall_handler_t *) sys_setuid, \
35 [ __NR_setgid32 ] = (syscall_handler_t *) sys_setgid, \
36 [ __NR_setfsuid32 ] = (syscall_handler_t *) sys_setfsuid, \
37 [ __NR_setfsgid32 ] = (syscall_handler_t *) sys_setfsgid, \
38 [ __NR_pivot_root ] = (syscall_handler_t *) sys_pivot_root, \
39 [ __NR_mincore ] = (syscall_handler_t *) sys_mincore, \
40 [ __NR_madvise ] = (syscall_handler_t *) sys_madvise, \
41 [ 222 ] = (syscall_handler_t *) sys_ni_syscall,
43 /* 222 doesn't yet have a name in include/asm-i386/unistd.h */
45 #define LAST_ARCH_SYSCALL 222
48 * Overrides for Emacs so that we follow Linus's tabbing style.
49 * Emacs will notice this stuff at the end of the file and automatically
50 * adjust the settings for this buffer only. This must remain at the end
52 * ---------------------------------------------------------------------------
54 * c-file-style: "linux"