summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/sysdeps/x86_64
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/x86_64
parentf45706ca6ade259d2cf9397c35b0135991470197 (diff)
change asm/volatile to __x__
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/x86_64')
-rw-r--r--libpthread/linuxthreads/sysdeps/x86_64/pspinlock.c6
-rw-r--r--libpthread/linuxthreads/sysdeps/x86_64/tls.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/libpthread/linuxthreads/sysdeps/x86_64/pspinlock.c b/libpthread/linuxthreads/sysdeps/x86_64/pspinlock.c
index e1b2a6684..b43d4ac8d 100644
--- a/libpthread/linuxthreads/sysdeps/x86_64/pspinlock.c
+++ b/libpthread/linuxthreads/sysdeps/x86_64/pspinlock.c
@@ -33,7 +33,7 @@
int
__pthread_spin_lock (pthread_spinlock_t *lock)
{
- asm volatile
+ __asm__ __volatile__
("\n"
"1:\n\t"
"lock; decl %0\n\t"
@@ -56,7 +56,7 @@ __pthread_spin_trylock (pthread_spinlock_t *lock)
{
int oldval;
- asm volatile
+ __asm__ __volatile__
("xchgl %0,%1"
: "=r" (oldval), "=m" (*lock)
: "0" (0));
@@ -68,7 +68,7 @@ weak_alias (__pthread_spin_trylock, pthread_spin_trylock)
int
__pthread_spin_unlock (pthread_spinlock_t *lock)
{
- asm volatile
+ __asm__ __volatile__
("movl $1,%0"
: "=m" (*lock));
return 0;
diff --git a/libpthread/linuxthreads/sysdeps/x86_64/tls.h b/libpthread/linuxthreads/sysdeps/x86_64/tls.h
index d67275c10..5e7239d17 100644
--- a/libpthread/linuxthreads/sysdeps/x86_64/tls.h
+++ b/libpthread/linuxthreads/sysdeps/x86_64/tls.h
@@ -108,7 +108,7 @@ typedef struct
/* For now the thread descriptor is at the same address. */ \
head->self = _descr; \
\
- asm volatile ("syscall" \
+ __asm__ __volatile__ ("syscall" \
: "=a" (_result) \
: "0" ((unsigned long int) __NR_arch_prctl), \
"D" ((unsigned long int) ARCH_SET_FS), \