patch-2.4.14 linux/include/asm-sparc/atomic.h

Next file: linux/include/asm-sparc/bitops.h
Previous file: linux/include/asm-ppc/unistd.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/include/asm-sparc/atomic.h linux/include/asm-sparc/atomic.h
@@ -56,11 +56,11 @@
 	ptr = &v->counter;
 	increment = i;
 
-	__asm__ __volatile__("
-	mov	%%o7, %%g4
-	call	___atomic_add
-	 add	%%o7, 8, %%o7
-"	: "=&r" (increment)
+	__asm__ __volatile__(
+	"mov	%%o7, %%g4\n\t"
+	"call	___atomic_add\n\t"
+	" add	%%o7, 8, %%o7\n"
+	: "=&r" (increment)
 	: "0" (increment), "r" (ptr)
 	: "g3", "g4", "g7", "memory", "cc");
 
@@ -75,11 +75,11 @@
 	ptr = &v->counter;
 	increment = i;
 
-	__asm__ __volatile__("
-	mov	%%o7, %%g4
-	call	___atomic_sub
-	 add	%%o7, 8, %%o7
-"	: "=&r" (increment)
+	__asm__ __volatile__(
+	"mov	%%o7, %%g4\n\t"
+	"call	___atomic_sub\n\t"
+	" add	%%o7, 8, %%o7\n"
+	: "=&r" (increment)
 	: "0" (increment), "r" (ptr)
 	: "g3", "g4", "g7", "memory", "cc");
 

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