syscall.sh / csky / mprotect

mprotect

set protection on a region of memory

sys_mprotect(unsigned long start, size_t len, unsigned long prot)
number226 (0xe2)
abicommon
entry pointsys_mprotect
sinceLinux 4.20
man pagemprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
r7226, the syscall number
a0unsigned long start
a1size_t len
a2unsigned long prot
a0the return value

Then run trap 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/csky/mprotect