set_mempolicy on loongarch64

set default NUMA memory policy for a thread and its children

sys_set_mempolicy(int mode, const unsigned long *nmask, unsigned long maxnode)
number237 (0xed)
abicommon
entry pointsys_set_mempolicy
sinceLinux 5.19 or earlier (5.19 is the first release scanned for loongarch64)
man pageset_mempolicy(2)
sourceelixir.bootlin.com

Registers

registervalue
a7237, the syscall number
a0int mode
a1const unsigned long *nmask
a2unsigned long maxnode
a0the return value

Then run syscall 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/loongarch64/set_mempolicy