]> git.ipfire.org Git - thirdparty/linux.git/commit
riscv: convert to generic syscall table
authorArnd Bergmann <arnd@arndb.de>
Wed, 24 Apr 2024 07:14:39 +0000 (09:14 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 10 Jul 2024 12:23:38 +0000 (14:23 +0200)
commit3db80c999debbadd5d627fb30f8b06fee331ffb6
tree2dcefb8469e603a92dc2df6fe41736dbb37a0033
parent77122bf9e3dfd927de4bf4a75b6297f928313e7e
riscv: convert to generic syscall table

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>
arch/riscv/include/asm/Kbuild
arch/riscv/include/asm/syscall_table.h [new file with mode: 0644]
arch/riscv/include/asm/unistd.h
arch/riscv/include/uapi/asm/Kbuild
arch/riscv/include/uapi/asm/unistd.h
arch/riscv/kernel/Makefile.syscalls [new file with mode: 0644]
arch/riscv/kernel/compat_syscall_table.c
arch/riscv/kernel/syscall_table.c
scripts/syscall.tbl