xref: /linux/arch/riscv/kernel/compat_syscall_table.c (revision 59c10c52f573faca862cda5ebcdd43831608eb5a)
1*59c10c52SGuo Ren // SPDX-License-Identifier: GPL-2.0-only
2*59c10c52SGuo Ren 
3*59c10c52SGuo Ren #define __SYSCALL_COMPAT
4*59c10c52SGuo Ren 
5*59c10c52SGuo Ren #include <linux/compat.h>
6*59c10c52SGuo Ren #include <linux/syscalls.h>
7*59c10c52SGuo Ren #include <asm-generic/mman-common.h>
8*59c10c52SGuo Ren #include <asm-generic/syscalls.h>
9*59c10c52SGuo Ren #include <asm/syscall.h>
10*59c10c52SGuo Ren 
11*59c10c52SGuo Ren #undef __SYSCALL
12*59c10c52SGuo Ren #define __SYSCALL(nr, call)      [nr] = (call),
13*59c10c52SGuo Ren 
14*59c10c52SGuo Ren asmlinkage long compat_sys_rt_sigreturn(void);
15*59c10c52SGuo Ren 
16*59c10c52SGuo Ren void * const compat_sys_call_table[__NR_syscalls] = {
17*59c10c52SGuo Ren 	[0 ... __NR_syscalls - 1] = sys_ni_syscall,
18*59c10c52SGuo Ren #include <asm/unistd.h>
19*59c10c52SGuo Ren };
20