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

Registers

registervalue
r11226, the syscall number
r3unsigned long start
r4size_t len
r5unsigned long prot
r11the return value

Then run l.sys 1 to enter the kernel.

Same syscall on other architectures

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