1*4882a593Smuzhiyun // SPDX-License-Identifier: GPL-2.0 2*4882a593Smuzhiyun /* System call table for i386. */ 3*4882a593Smuzhiyun 4*4882a593Smuzhiyun #include <linux/linkage.h> 5*4882a593Smuzhiyun #include <linux/sys.h> 6*4882a593Smuzhiyun #include <linux/cache.h> 7*4882a593Smuzhiyun #include <linux/syscalls.h> 8*4882a593Smuzhiyun #include <asm/unistd.h> 9*4882a593Smuzhiyun #include <asm/syscall.h> 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun #define __SYSCALL_I386(nr, sym) extern long __ia32_##sym(const struct pt_regs *); 12*4882a593Smuzhiyun 13*4882a593Smuzhiyun #include <asm/syscalls_32.h> 14*4882a593Smuzhiyun #undef __SYSCALL_I386 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun #define __SYSCALL_I386(nr, sym) [nr] = __ia32_##sym, 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun __visible const sys_call_ptr_t ia32_sys_call_table[__NR_ia32_syscall_max+1] = { 19*4882a593Smuzhiyun /* 20*4882a593Smuzhiyun * Smells like a compiler bug -- it doesn't work 21*4882a593Smuzhiyun * when the & below is removed. 22*4882a593Smuzhiyun */ 23*4882a593Smuzhiyun [0 ... __NR_ia32_syscall_max] = &__ia32_sys_ni_syscall, 24*4882a593Smuzhiyun #include <asm/syscalls_32.h> 25*4882a593Smuzhiyun }; 26