syscall.sh / m68k / atomic_cmpxchg_32

atomic_cmpxchg_32

sys_atomic_cmpxchg_32(unsigned long newval, int oldval, int d3, int d4, int d5, unsigned long *mem)
number335 (0x14f)
abicommon
entry pointsys_atomic_cmpxchg_32
sinceLinux 5.0
sourceelixir.bootlin.com

Registers

registervalue
d0335, the syscall number
d1unsigned long newval
d2int oldval
d3int d3
d4int d4
d5int d5
a0unsigned long *mem
d0the return value

Then run trap #0 to enter the kernel.

Get this as JSON: https://api.syscall.sh/v2/syscalls/m68k/atomic_cmpxchg_32