syscall.sh / sparc64 / mprotect

mprotect

set protection on a region of memory

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

Registers

registervalue
g174, the syscall number
o0unsigned long start
o1size_t len
o2unsigned long prot
o0the return value

Then run t 0x6d to enter the kernel.

Same syscall on other architectures

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