1 // SPDX-License-Identifier: GPL-2.0-only
3 #define __SYSCALL_COMPAT
5 #include <linux/compat.h>
6 #include <linux/syscalls.h>
7 #include <asm-generic/mman-common.h>
8 #include <asm-generic/syscalls.h>
9 #include <asm/syscall.h>
12 #define __SYSCALL(nr, call) asmlinkage long __riscv_##call(const struct pt_regs *);
13 #include <asm/unistd.h>
16 #define __SYSCALL(nr, call) [nr] = __riscv_##call,
18 asmlinkage long compat_sys_rt_sigreturn(void);
20 void * const compat_sys_call_table[__NR_syscalls] = {
21 [0 ... __NR_syscalls - 1] = __riscv_sys_ni_syscall,
22 #include <asm/unistd.h>