Index: kernel/arch/mips32/include/atomic.h
===================================================================
--- kernel/arch/mips32/include/atomic.h	(revision 6387c1846645861733485c60020268e9a9c08886)
+++ kernel/arch/mips32/include/atomic.h	(revision 8c7294c6b71c80681201b7bf37e1ffe6faf6ba57)
@@ -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)
 		);
