syscall.sh / sparc / exit
exit
terminate the calling thread
sys_exit(int error_code)
| number | 1 (0x1) |
|---|---|
| abi | 32 |
| entry point | sys_exit |
| since | Linux 5.0 |
| man page | exit(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
g1 | 1, the syscall number |
o0 | int error_code |
o0 | the return value |
Then run t 0x10 to enter the kernel.
Same syscall on other architectures
- x64 60
- x86 1
- arm64 93
- arm 1
- riscv64 93
- x32 1073741884
- loongarch64 93
- ppc64 1
- ppc 1
- s390x 1
- mips64 5058
- mipsn32 6058
- mipso32 4001
- alpha 1
- arc 93
- csky 93
- hexagon 93
- m68k 1
- microblaze 1
- nios2 93
- openrisc 93
- parisc 1
- sh 1
- sparc64 1
- xtensa 118
Get this as JSON: https://api.syscall.sh/v2/syscalls/sparc/exit