1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2009 Arnd Bergmann <arnd@arndb.de>
4 * Copyright (C) 2012 Regents of the University of California
7 #include <linux/linkage.h>
8 #include <linux/syscalls.h>
9 #include <asm-generic/syscalls.h>
10 #include <asm/syscall.h>
12 #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
15 #define __SYSCALL(nr, call) asmlinkage long __riscv_##call(const struct pt_regs *);
16 #include <asm/syscall_table.h>
19 #define __SYSCALL(nr, call) [nr] = __riscv_##call,
21 void * const sys_call_table
[__NR_syscalls
] = {
22 [0 ... __NR_syscalls
- 1] = __riscv_sys_ni_syscall
,
23 #include <asm/syscall_table.h>