patch-2.4.23 linux-2.4.23/include/asm-sparc/system.h

Next file: linux-2.4.23/include/asm-sparc/tsunami.h
Previous file: linux-2.4.23/include/asm-sparc/swift.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/include/asm-sparc/system.h linux-2.4.23/include/asm-sparc/system.h
@@ -217,7 +217,7 @@
 		"wr	%0, %2, %%psr\n\t"
 		"nop; nop; nop;\n"
 		"1:\n"
-		: "=r" (retval)
+		: "=&r" (retval)
 		: "r" (__new_psr), "i" (PSR_PIL)
 		: "g1", "g2", "memory", "cc");
 
@@ -315,7 +315,8 @@
 #ifdef CONFIG_SMP
 	__asm__ __volatile__("swap [%2], %0"
 			     : "=&r" (val)
-			     : "0" (val), "r" (m));
+			     : "0" (val), "r" (m)
+			     : "memory");
 	return val;
 #else
 	register unsigned long *ptr asm("g1");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)