syscall.sh / nios2 / exit

exit

terminate the calling thread

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

Registers

registervalue
r293, the syscall number
r4int error_code
r2the return value

Then run trap to enter the kernel.

Same syscall on other architectures

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