1 /* System call table for i386. */
3 #include <linux/linkage.h>
5 #include <linux/cache.h>
6 #include <asm/asm-offsets.h>
8 #ifdef CONFIG_IA32_EMULATION
9 #define SYM(sym, compat) compat
11 #define SYM(sym, compat) sym
12 #define ia32_sys_call_table sys_call_table
13 #define __NR_syscall_compat_max __NR_syscall_max
16 #define __SYSCALL_I386(nr, sym, compat) extern asmlinkage void SYM(sym, compat)(void) ;
17 #include <asm/syscalls_32.h>
20 #define __SYSCALL_I386(nr, sym, compat) [nr] = SYM(sym, compat),
22 typedef asmlinkage
void (*sys_call_ptr_t
)(void);
24 extern asmlinkage
void sys_ni_syscall(void);
26 __visible
const sys_call_ptr_t ia32_sys_call_table
[__NR_syscall_compat_max
+1] = {
28 * Smells like a compiler bug -- it doesn't work
29 * when the & below is removed.
31 [0 ... __NR_syscall_compat_max
] = &sys_ni_syscall
,
32 #include <asm/syscalls_32.h>