syscall.sh / xtensa / exit

exit

terminate the calling thread

sys_exit(int error_code)
number118 (0x76)
abicommon
entry pointsys_exit
sinceLinux 5.0
man pageexit(2)
sourceelixir.bootlin.com

Registers

registervalue
a2118, the syscall number
a6int error_code
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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