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/mips/pspinlock.c | 4 ++-- libpthread/linuxthreads/sysdeps/mips/tls.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libpthread/linuxthreads/sysdeps/mips') diff --git a/libpthread/linuxthreads/sysdeps/mips/pspinlock.c b/libpthread/linuxthreads/sysdeps/mips/pspinlock.c index 350aa7553..a106c0f77 100644 --- a/libpthread/linuxthreads/sysdeps/mips/pspinlock.c +++ b/libpthread/linuxthreads/sysdeps/mips/pspinlock.c @@ -31,7 +31,7 @@ __pthread_spin_lock (pthread_spinlock_t *lock) { unsigned int tmp1, tmp2; - asm volatile + __asm__ __volatile__ ("\t\t\t# spin_lock\n" "1:\n\t" ".set push\n\t" @@ -66,7 +66,7 @@ weak_alias (__pthread_spin_trylock, pthread_spin_trylock) int __pthread_spin_unlock (pthread_spinlock_t *lock) { - asm volatile + __asm__ __volatile__ ("\t\t\t# spin_unlock\n\t" "sw $0,%0" : "=m" (*lock) diff --git a/libpthread/linuxthreads/sysdeps/mips/tls.h b/libpthread/linuxthreads/sysdeps/mips/tls.h index be4478db4..15dda696d 100644 --- a/libpthread/linuxthreads/sysdeps/mips/tls.h +++ b/libpthread/linuxthreads/sysdeps/mips/tls.h @@ -39,7 +39,7 @@ typedef union dtv # define READ_THREAD_POINTER() \ ({ void *__result; \ - asm volatile (".set\tpush\n\t.set\tmips32r2\n\t" \ + __asm__ __volatile__ (".set\tpush\n\t.set\tmips32r2\n\t" \ "rdhwr\t%0, $29\n\t.set\tpop" : "=v" (__result)); \ __result; }) -- cgit v1.2.3