diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-04-24 09:24:59 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-04-24 09:24:59 +0000 |
commit | 1d8abd74c4ae9b28035b549345f9f736cdb98c10 (patch) | |
tree | 9a534ad59f2ddfc18076a92e3331128d4c5bd2da /libpthread/linuxthreads.old/sysdeps/frv | |
parent | 1db4be5334a327dde925c73b8d924440257cf487 (diff) |
- fixup asm. No object-code changes
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. */ |