summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/sysdeps/sparc/sparc64
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-02-01 09:25:33 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-02-01 09:25:33 +0000
commitfd56af193eff8ad598d2789e970150d7a363c890 (patch)
treec5ec50abc7960fcaf509b4b1b3a27e4a9302f345 /libpthread/linuxthreads/sysdeps/sparc/sparc64
parentf45706ca6ade259d2cf9397c35b0135991470197 (diff)
change asm/volatile to __x__
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/sparc/sparc64')
-rw-r--r--libpthread/linuxthreads/sysdeps/sparc/sparc64/pspinlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpthread/linuxthreads/sysdeps/sparc/sparc64/pspinlock.c b/libpthread/linuxthreads/sysdeps/sparc/sparc64/pspinlock.c
index 92b84f510..e0c350e6b 100644
--- a/libpthread/linuxthreads/sysdeps/sparc/sparc64/pspinlock.c
+++ b/libpthread/linuxthreads/sysdeps/sparc/sparc64/pspinlock.c
@@ -25,7 +25,7 @@
int
__pthread_spin_lock (pthread_spinlock_t *lock)
{
- asm volatile
+ __asm__ __volatile__
("1: ldstub [%0], %%g5\n"
" brnz,pn %%g5, 2f\n"
" membar #StoreLoad | #StoreStore\n"
@@ -47,7 +47,7 @@ int
__pthread_spin_trylock (pthread_spinlock_t *lock)
{
int result;
- asm volatile
+ __asm__ __volatile__
("ldstub [%1], %0\n"
"membar #StoreLoad | #StoreStore"
: "=r" (result)
@@ -61,7 +61,7 @@ weak_alias (__pthread_spin_trylock, pthread_spin_trylock)
int
__pthread_spin_unlock (pthread_spinlock_t *lock)
{
- asm volatile
+ __asm__ __volatile__
("membar #StoreStore | #LoadStore\n"
"stb %%g0, [%0]"
: