syscall.sh / parisc / prctl
prctl
operations on a process or thread
sys_prctl(int option, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5)
| number | 172 (0xac) |
|---|---|
| abi | common |
| entry point | sys_prctl |
| since | Linux 5.0 |
| man page | prctl(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 172, the syscall number |
r26 | int option |
r25 | unsigned long arg2 |
r24 | unsigned long arg3 |
r23 | unsigned long arg4 |
r22 | unsigned long arg5 |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 157
- x86 172
- arm64 167
- arm 172
- riscv64 167
- x32 1073741981
- loongarch64 167
- ppc64 171
- ppc 171
- s390x 172
- mips64 5153
- mipsn32 6153
- mipso32 4192
- alpha 348
- arc 167
- csky 167
- hexagon 167
- m68k 172
- microblaze 172
- nios2 167
- openrisc 167
- sh 172
- sparc 147
- sparc64 147
- xtensa 130
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/prctl