syscall.sh / riscv64 / membarrier

membarrier

issue memory barriers on a set of threads

sys_membarrier(int cmd, unsigned int flags, int cpu_id)
number283 (0x11b)
abicommon
entry pointsys_membarrier
sinceLinux 4.15
man pagemembarrier(2)
sourceelixir.bootlin.com

Registers

registervalue
a7283, the syscall number
a0int cmd
a1unsigned int flags
a2int cpu_id
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/membarrier