svn commit: branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm
kraj at uclibc.org
kraj at uclibc.org
Fri Aug 15 05:24:05 UTC 2008
Author: kraj
Date: 2008-08-14 22:24:04 -0700 (Thu, 14 Aug 2008)
New Revision: 23080
Log:
__asm__ and __volatile__ conversion for arm.
Modified:
branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm/lowlevellock.h
branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c
Changeset:
Modified: branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm/lowlevellock.h
===================================================================
--- branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm/lowlevellock.h 2008-08-15 05:18:23 UTC (rev 23079)
+++ branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm/lowlevellock.h 2008-08-15 05:24:04 UTC (rev 23080)
@@ -107,7 +107,7 @@
else if (old > 1)
flag = atomic_exchange_acq (futex, old);
#else
- asm volatile (
+ __asm__ __volatile__ (
"\tswp %[old], %[flag], [%[futex]] @ try to take the lock\n"
"\tcmp %[old], #1 @ check old lock value\n"
"\tmovlo %[flag], #0 @ if we got it, return 0\n"
@@ -134,7 +134,7 @@
else if (old > 1)
flag = atomic_exchange_acq (futex, old);
#else
- asm volatile (
+ __asm__ __volatile__ (
"\tswp %[old], %[flag], [%[futex]] @ try to take the lock\n"
"\tcmp %[old], #1 @ check old lock value\n"
"\tmovlo %[flag], #0 @ if we got it, return 0\n"
Modified: branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c
===================================================================
--- branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c 2008-08-15 05:18:23 UTC (rev 23079)
+++ branches/uClibc-nptl/libpthread/nptl/sysdeps/unix/sysv/linux/arm/unwind-resume.c 2008-08-15 05:24:04 UTC (rev 23080)
@@ -53,7 +53,7 @@
ARM unwinder relies on register state at entrance. So we write this in
assembly. */
-asm (
+__asm__ (
" .globl _Unwind_Resume\n"
" .type _Unwind_Resume, %function\n"
"_Unwind_Resume:\n"
More information about the uClibc-cvs
mailing list