From fd56af193eff8ad598d2789e970150d7a363c890 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 1 Feb 2006 09:25:33 +0000 Subject: change asm/volatile to __x__ --- libpthread/linuxthreads/sysdeps/x86_64/pspinlock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libpthread/linuxthreads/sysdeps/x86_64/pspinlock.c') 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; -- cgit v1.2.3