syscall.sh / xtensa / mprotect

mprotect

set protection on a region of memory

sys_mprotect(unsigned long start, size_t len, unsigned long prot)
number82 (0x52)
abicommon
entry pointsys_mprotect
sinceLinux 5.0
man pagemprotect(2)
sourceelixir.bootlin.com

Registers

registervalue
a282, the syscall number
a6unsigned long start
a3size_t len
a4unsigned long prot
a2the return value

Then run syscall to enter the kernel.

Same syscall on other architectures

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