diff options
Diffstat (limited to 'libpthread/linuxthreads.old/sysdeps/frv')
-rw-r--r-- | libpthread/linuxthreads.old/sysdeps/frv/pt-machine.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpthread/linuxthreads.old/sysdeps/frv/pt-machine.h b/libpthread/linuxthreads.old/sysdeps/frv/pt-machine.h index 2317b65a0..9c9d0d76a 100644 --- a/libpthread/linuxthreads.old/sysdeps/frv/pt-machine.h +++ b/libpthread/linuxthreads.old/sysdeps/frv/pt-machine.h @@ -35,7 +35,7 @@ PT_EI long int testandset (int *spinlock) { int i = 1; - asm ("swap%I0 %M0, %1" : "+m"(*(volatile int *)spinlock), "+r"(i)); + __asm__ ("swap%I0 %M0, %1" : "+m"(*(volatile int *)spinlock), "+r"(i)); return i; } @@ -53,7 +53,7 @@ extern char __stacksize; #define WRITE_MEMORY_BARRIER() __asm__ __volatile__("membar" : : : "memory") /* Return the thread descriptor for the current thread. */ -register struct _pthread_descr_struct *THREAD_SELF asm ("gr29"); +register struct _pthread_descr_struct *THREAD_SELF __asm__ ("gr29"); #define THREAD_SELF THREAD_SELF /* Initialize the thread-unique value. */ |