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
- Lines: 34
- Date:
Tue Oct 30 15:08:11 2001
- Orig file:
v2.4.13/linux/include/asm-sparc/atomic.h
- Orig date:
Wed Jul 25 17:10:25 2001
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)