H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 1 | /* System call table for i386. */ |
| 2 | |
| 3 | #include <linux/linkage.h> |
| 4 | #include <linux/sys.h> |
| 5 | #include <linux/cache.h> |
| 6 | #include <asm/asm-offsets.h> |
Andy Lutomirski | 034042c | 2015-10-05 17:48:06 -0700 | [diff] [blame] | 7 | #include <asm/syscall.h> |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 8 | |
Andy Lutomirski | cfcbadb | 2016-01-28 15:11:24 -0800 | [diff] [blame] | 9 | #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) ; |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 10 | #include <asm/syscalls_32.h> |
| 11 | #undef __SYSCALL_I386 |
| 12 | |
Andy Lutomirski | cfcbadb | 2016-01-28 15:11:24 -0800 | [diff] [blame] | 13 | #define __SYSCALL_I386(nr, sym, qual) [nr] = sym, |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 14 | |
Andy Lutomirski | eb974c6 | 2015-10-05 17:48:07 -0700 | [diff] [blame] | 15 | extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long); |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 16 | |
Ingo Molnar | bace711 | 2015-06-08 21:20:26 +0200 | [diff] [blame] | 17 | __visible const sys_call_ptr_t ia32_sys_call_table[__NR_syscall_compat_max+1] = { |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 18 | /* |
H. Peter Anvin | 61f1e7e | 2011-11-18 16:25:07 -0800 | [diff] [blame] | 19 | * Smells like a compiler bug -- it doesn't work |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 20 | * when the & below is removed. |
| 21 | */ |
Ingo Molnar | bace711 | 2015-06-08 21:20:26 +0200 | [diff] [blame] | 22 | [0 ... __NR_syscall_compat_max] = &sys_ni_syscall, |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 23 | #include <asm/syscalls_32.h> |
| 24 | }; |