MIPS: Rewrite sysmips(MIPS_ATOMIC_SET, ...) in C with inline assembler