syscall.sh / parisc / mprotect
mprotect
set protection on a region of memory
sys_mprotect(unsigned long start, size_t len, unsigned long prot)
| number | 125 (0x7d) |
|---|---|
| abi | common |
| entry point | sys_mprotect |
| since | Linux 5.0 |
| man page | mprotect(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r20 | 125, the syscall number |
r26 | unsigned long start |
r25 | size_t len |
r24 | unsigned long prot |
r28 | the return value |
Then run ble 0x100(%sr2, %r0) to enter the kernel.
Same syscall on other architectures
- x64 10
- x86 125
- arm64 226
- arm 125
- riscv64 226
- x32 1073741834
- loongarch64 226
- ppc64 125
- ppc 125
- s390x 125
- mips64 5010
- mipsn32 6010
- mipso32 4125
- alpha 74
- arc 226
- csky 226
- hexagon 226
- m68k 125
- microblaze 125
- nios2 226
- openrisc 226
- sh 125
- sparc 74
- sparc64 74
- xtensa 82
Get this as JSON: https://api.syscall.sh/v2/syscalls/parisc/mprotect