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