patch-2.4.4 linux/include/asm-sparc64/spinlock.h
Next file: linux/include/asm-sparc64/spitfire.h
Previous file: linux/include/asm-sparc64/smp.h
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Thu Apr 26 22:17:26 2001
- Orig file:
v2.4.3/linux/include/asm-sparc64/spinlock.h
- Orig date:
Mon Aug 14 13:09:08 2000
diff -u --recursive --new-file v2.4.3/linux/include/asm-sparc64/spinlock.h linux/include/asm-sparc64/spinlock.h
@@ -40,17 +40,17 @@
extern __inline__ void spin_lock(spinlock_t *lock)
{
- __asm__ __volatile__("
-1: ldstub [%0], %%g7
- brnz,pn %%g7, 2f
- membar #StoreLoad | #StoreStore
- .subsection 2
-2: ldub [%0], %%g7
- brnz,pt %%g7, 2b
- membar #LoadLoad
- b,a,pt %%xcc, 1b
- .previous
-" : /* no outputs */
+ __asm__ __volatile__(
+"1: ldstub [%0], %%g7\n"
+" brnz,pn %%g7, 2f\n"
+" membar #StoreLoad | #StoreStore\n"
+" .subsection 2\n"
+"2: ldub [%0], %%g7\n"
+" brnz,pt %%g7, 2b\n"
+" membar #LoadLoad\n"
+" b,a,pt %%xcc, 1b\n"
+" .previous\n"
+ : /* no outputs */
: "r" (lock)
: "g7", "memory");
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)