FILE
syscall_table.c
File preview with syntax highlighting.
linux-6.19.14/arch/riscv/kernel/syscall_table.c
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#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native) 13 14#undef __SYSCALL 15#define __SYSCALL(nr, call) asmlinkage long __riscv_##call(const struct pt_regs *); 16#include <asm/syscall_table.h> 17 18#undef __SYSCALL 19#define __SYSCALL(nr, call) [nr] = __riscv_##call, 20 21void * const sys_call_table[__NR_syscalls] = { 22 [0 ... __NR_syscalls - 1] = __riscv_sys_ni_syscall, 23#include <asm/syscall_table.h> 24};
~/
Read-only file preview.