xref: /linux/arch/riscv/kernel/syscall_table.c (revision 3f0a50f345f78183f6e9b39c2f45ca5dcaa511ca)
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3  * Copyright (C) 2009 Arnd Bergmann <arnd@arndb.de>
4  * Copyright (C) 2012 Regents of the University of California
5  */
6 
7 #include <linux/linkage.h>
8 #include <linux/syscalls.h>
9 #include <asm-generic/syscalls.h>
10 #include <asm/syscall.h>
11 
12 #undef __SYSCALL
13 #define __SYSCALL(nr, call)	[nr] = (call),
14 
15 void * const sys_call_table[__NR_syscalls] = {
16 	[0 ... __NR_syscalls - 1] = sys_ni_syscall,
17 #include <asm/unistd.h>
18 };
19