159c10c52SGuo Ren // SPDX-License-Identifier: GPL-2.0-only 259c10c52SGuo Ren 359c10c52SGuo Ren #define __SYSCALL_COMPAT 459c10c52SGuo Ren 559c10c52SGuo Ren #include <linux/compat.h> 659c10c52SGuo Ren #include <linux/syscalls.h> 759c10c52SGuo Ren #include <asm-generic/mman-common.h> 859c10c52SGuo Ren #include <asm-generic/syscalls.h> 959c10c52SGuo Ren #include <asm/syscall.h> 1059c10c52SGuo Ren 1159c10c52SGuo Ren #undef __SYSCALL 12*08d0ce30SSami Tolvanen #define __SYSCALL(nr, call) asmlinkage long __riscv_##call(const struct pt_regs *); 13*08d0ce30SSami Tolvanen #include <asm/unistd.h> 14*08d0ce30SSami Tolvanen 15*08d0ce30SSami Tolvanen #undef __SYSCALL 16*08d0ce30SSami Tolvanen #define __SYSCALL(nr, call) [nr] = __riscv_##call, 1759c10c52SGuo Ren 1859c10c52SGuo Ren asmlinkage long compat_sys_rt_sigreturn(void); 1959c10c52SGuo Ren 2059c10c52SGuo Ren void * const compat_sys_call_table[__NR_syscalls] = { 21*08d0ce30SSami Tolvanen [0 ... __NR_syscalls - 1] = __riscv_sys_ni_syscall, 2259c10c52SGuo Ren #include <asm/unistd.h> 2359c10c52SGuo Ren }; 24