1
2
3
4 #include <linux/linkage.h>
5 #include <linux/sys.h>
6 #include <linux/cache.h>
7 #include <asm/asm-offsets.h>
8 #include <asm/syscall.h>
9
10 #ifdef CONFIG_IA32_EMULATION
11
12 #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(const struct pt_regs *);
13 #define __sys_ni_syscall __ia32_sys_ni_syscall
14 #else
15 #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
16 extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
17 #define __sys_ni_syscall sys_ni_syscall
18 #endif
19
20 #include <asm/syscalls_32.h>
21 #undef __SYSCALL_I386
22
23 #define __SYSCALL_I386(nr, sym, qual) [nr] = sym,
24
25 __visible const sys_call_ptr_t ia32_sys_call_table[__NR_syscall_compat_max+1] = {
26
27
28
29
30 [0 ... __NR_syscall_compat_max] = &__sys_ni_syscall,
31 #include <asm/syscalls_32.h>
32 };