From 1d8abd74c4ae9b28035b549345f9f736cdb98c10 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 24 Apr 2008 09:24:59 +0000 Subject: - fixup asm. No object-code changes --- libpthread/linuxthreads.old/sysdeps/frv/pt-machine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpthread/linuxthreads.old/sysdeps/frv/pt-machine.h') 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. */ -- cgit v1.2.3