syscall.sh / microblaze / mprotect

mprotect

set protection on a region of memory

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

Registers

registervalue
r12125, the syscall number
r5unsigned long start
r6size_t len
r7unsigned long prot
r3the return value

Then run brki r14,8 to enter the kernel.

Same syscall on other architectures

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