1b2441318SGreg Kroah-Hartman // SPDX-License-Identifier: GPL-2.0 200398a00SIngo Molnar /* System call table for i386. */ 300398a00SIngo Molnar 400398a00SIngo Molnar #include <linux/linkage.h> 500398a00SIngo Molnar #include <linux/sys.h> 600398a00SIngo Molnar #include <linux/cache.h> 725c619e5SBrian Gerst #include <linux/syscalls.h> 8034042ccSAndy Lutomirski #include <asm/syscall.h> 900398a00SIngo Molnar 106218d0f6SMasahiro Yamada #ifdef CONFIG_IA32_EMULATION 116218d0f6SMasahiro Yamada #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat) 126218d0f6SMasahiro Yamada #else 136218d0f6SMasahiro Yamada #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 146218d0f6SMasahiro Yamada #endif 156218d0f6SMasahiro Yamada 166218d0f6SMasahiro Yamada #define __SYSCALL(nr, sym) extern long __ia32_##sym(const struct pt_regs *); 17ebeb8c82SDominik Brodowski 1800398a00SIngo Molnar #include <asm/syscalls_32.h> 196218d0f6SMasahiro Yamada #undef __SYSCALL 2000398a00SIngo Molnar 21*44fe4895SMasahiro Yamada #define __SYSCALL(nr, sym) __ia32_##sym, 2200398a00SIngo Molnar 23*44fe4895SMasahiro Yamada __visible const sys_call_ptr_t ia32_sys_call_table[] = { 2400398a00SIngo Molnar #include <asm/syscalls_32.h> 2500398a00SIngo Molnar }; 26