munmap on riscv64

map or unmap files or devices into memory

sys_munmap(unsigned long addr, size_t len)
number215 (0xd7)
abicommon
entry pointsys_munmap
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagemunmap(2)
sourceelixir.bootlin.com

Registers

registervalue
a7215, the syscall number
a0unsigned long addr
a1size_t len
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/munmap