History

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.

Arnd Bergmann committed 2 years ago

Commit 3db80c91 parent 77122bf9 files · +40 −44Browse files

Showing the changes to scripts (1 of 9 files). Show all

Unified · Split

scripts/syscall.tbl+3−0
@@ -301,6 +301,9 @@ · 300 unmodified lines
301 301
302244 or1k or1k_atomic sys_or1k_atomic302244 or1k or1k_atomic sys_or1k_atomic
303 303
304258 riscv riscv_hwprobe sys_riscv_hwprobe
305259 riscv riscv_flush_icache sys_riscv_flush_icache
306
304260 time32 wait4 sys_wait4 compat_sys_wait4307260 time32 wait4 sys_wait4 compat_sys_wait4
305260 64 wait4 sys_wait4308260 64 wait4 sys_wait4
306261 common prlimit64 sys_prlimit64309261 common prlimit64 sys_prlimit64