3db80c999d
The uapi/asm/unistd_{32,64}.h and asm/syscall_table_{32,64}.h headers can now be generated from scripts/syscall.tbl, which makes this consistent with the other architectures that have their own syscall.tbl. riscv has two extra system call that gets added to scripts/syscall.tbl. The newstat and rlimit entries in the syscall_abis_64 line are for system calls that were part of the generic ABI when riscv64 got added but are no longer enabled by default for new architectures. Both riscv32 and riscv64 also implement memfd_secret, which is optional for all architectures. Unlike all the other 32-bit architectures, the time32 and stat64 sets of syscalls are not enabled on riscv32. Both the user visible side of asm/unistd.h and the internal syscall table in the kernel should have the same effective contents after this. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
30 lines
719 B
C
30 lines
719 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2012 Regents of the University of California
|
|
*/
|
|
|
|
#define __ARCH_WANT_SYS_CLONE
|
|
|
|
#ifdef CONFIG_COMPAT
|
|
#define __ARCH_WANT_COMPAT_TRUNCATE64
|
|
#define __ARCH_WANT_COMPAT_FTRUNCATE64
|
|
#define __ARCH_WANT_COMPAT_FALLOCATE
|
|
#define __ARCH_WANT_COMPAT_PREAD64
|
|
#define __ARCH_WANT_COMPAT_PWRITE64
|
|
#define __ARCH_WANT_COMPAT_SYNC_FILE_RANGE
|
|
#define __ARCH_WANT_COMPAT_READAHEAD
|
|
#define __ARCH_WANT_COMPAT_FADVISE64_64
|
|
#endif
|
|
|
|
#if defined(__LP64__) && !defined(__SYSCALL_COMPAT)
|
|
#define __ARCH_WANT_NEW_STAT
|
|
#define __ARCH_WANT_SET_GET_RLIMIT
|
|
#endif /* __LP64__ */
|
|
|
|
#define __ARCH_WANT_MEMFD_SECRET
|
|
|
|
|
|
#include <uapi/asm/unistd.h>
|
|
|
|
#define NR_syscalls (__NR_syscalls)
|