Index: kernel/arch/mips32/include/atomic.h
===================================================================
--- kernel/arch/mips32/include/atomic.h	(revision c711efe7b237311021ad0089a03837cd8362035e)
+++ kernel/arch/mips32/include/atomic.h	(revision 53366432148363999e7224a532e994dbb226352c)
@@ -64,5 +64,5 @@
 		"	beq %0, %4, 1b\n"	/* if the atomic operation failed, try again */
 		"	nop\n"
-		: "=&r" (tmp), "=m" (val->count), "=&r" (v)
+		: "=&r" (tmp), "+m" (val->count), "=&r" (v)
 		: "i" (i), "i" (0)
 		);
