summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/sysdeps/sparc
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/sparc')
-rw-r--r--libpthread/linuxthreads/sysdeps/sparc/sparc32/pspinlock.c4
-rw-r--r--libpthread/linuxthreads/sysdeps/sparc/sparc32/sparcv9/pspinlock.c6
-rw-r--r--libpthread/linuxthreads/sysdeps/sparc/sparc64/pspinlock.c6
3 files changed, 8 insertions, 8 deletions
diff --git a/libpthread/linuxthreads/sysdeps/sparc/sparc32/pspinlock.c b/libpthread/linuxthreads/sysdeps/sparc/sparc32/pspinlock.c
index a67dbf901..812c7ff2a 100644
--- a/libpthread/linuxthreads/sysdeps/sparc/sparc32/pspinlock.c
+++ b/libpthread/linuxthreads/sysdeps/sparc/sparc32/pspinlock.c
@@ -25,7 +25,7 @@
int
__pthread_spin_lock (pthread_spinlock_t *lock)
{
- asm volatile
+ __asm__ __volatile__
("1: ldstub [%0], %%g2\n"
" orcc %%g2, 0x0, %%g0\n"
" bne,a 2f\n"
@@ -48,7 +48,7 @@ int
__pthread_spin_trylock (pthread_spinlock_t *lock)
{
int result;
- asm volatile
+ __asm__ __volatile__
("ldstub [%1], %0"
: "=r" (result)
: "r" (lock)
diff --git a/libpthread/linuxthreads/sysdeps/sparc/sparc32/sparcv9/pspinlock.c b/libpthread/linuxthreads/sysdeps/sparc/sparc32/sparcv9/pspinlock.c
index 04f588bed..7e55df414 100644
--- a/libpthread/linuxthreads/sysdeps/sparc/sparc32/sparcv9/pspinlock.c
+++ b/libpthread/linuxthreads/sysdeps/sparc/sparc32/sparcv9/pspinlock.c
@@ -26,7 +26,7 @@
int
__pthread_spin_lock (pthread_spinlock_t *lock)
{
- asm volatile
+ __asm__ __volatile__
("1: ldstub [%0], %%g2\n"
" brnz,pn %%g2, 2f\n"
" membar #StoreLoad | #StoreStore\n"
@@ -48,7 +48,7 @@ int
__pthread_spin_trylock (pthread_spinlock_t *lock)
{
int result;
- asm volatile
+ __asm__ __volatile__
("ldstub [%1], %0\n"
"membar #StoreLoad | #StoreStore"
: "=r" (result)
@@ -62,7 +62,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]"
:
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]"
: