Index: kernel/arch/mips32/include/atomic.h
===================================================================
--- kernel/arch/mips32/include/atomic.h	(revision 5d494b3f7a42392f3a69ba78ee3c67c3969e5041)
+++ kernel/arch/mips32/include/atomic.h	(revision 0f44f04e65087c8d3c9d14370f2f553d6b523298)
@@ -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)
 		);
