syscall.sh / nios2 / 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 3.19
man pagemprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
r2226, the syscall number
r4unsigned long start
r5size_t len
r6unsigned long prot
r2the return value

Then run trap to enter the kernel.

Same syscall on other architectures

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