syscall.sh / riscv64 / exit

exit

terminate the calling thread

sys_exit(int error_code)
number93 (0x5d)
abicommon
entry pointsys_exit
sinceLinux 4.15
man pageexit(2)
sourceelixir.bootlin.com

Registers

registervalue
a793, the syscall number
a0int error_code
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/exit