linux-next/tools/testing/selftests/syscall_user_dispatch
Clément Léger 17c67ed752
selftests: sud_test: return correct emulated syscall value on RISC-V
Currently, the sud_test expects the emulated syscall to return the
emulated syscall number. This assumption only works on architectures
were the syscall calling convention use the same register for syscall
number/syscall return value. This is not the case for RISC-V and thus
the return value must be also emulated using the provided ucontext.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
Link: https://lore.kernel.org/r/20231206134438.473166-1-cleger@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-04-25 09:46:41 -07:00
..
.gitignore
config
Makefile selftests: Add benchmark for syscall user dispatch 2020-12-02 15:07:57 +01:00
sud_benchmark.c entry: Use different define for selector variable in SUD 2021-02-06 00:21:42 +01:00
sud_test.c selftests: sud_test: return correct emulated syscall value on RISC-V 2024-04-25 09:46:41 -07:00