xref: /linux/arch/riscv/kernel/compat_syscall_table.c (revision 0526b56cbc3c489642bd6a5fe4b718dea7ef0ee8)
1 // SPDX-License-Identifier: GPL-2.0-only
2 
3 #define __SYSCALL_COMPAT
4 
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>
10 
11 #undef __SYSCALL
12 #define __SYSCALL(nr, call)      [nr] = (call),
13 
14 asmlinkage long compat_sys_rt_sigreturn(void);
15 
16 void * const compat_sys_call_table[__NR_syscalls] = {
17 	[0 ... __NR_syscalls - 1] = sys_ni_syscall,
18 #include <asm/unistd.h>
19 };
20