svn commit: trunk/uClibc/libpthread: linuxthreads/sysdeps/avr32 linuxthreads. etc...
egtvedt at uclibc.org
egtvedt at uclibc.org
Wed Apr 16 14:24:58 UTC 2008
Author: egtvedt
Date: 2008-04-16 07:24:58 -0700 (Wed, 16 Apr 2008)
New Revision: 21745
Log:
Fix whitespace damage in AVR32 pt-machine.h in libpthread, linuxthreads and linuxthreads.old.
Modified:
trunk/uClibc/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h
trunk/uClibc/libpthread/linuxthreads/sysdeps/avr32/pt-machine.h
Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads/sysdeps/avr32/pt-machine.h
===================================================================
--- trunk/uClibc/libpthread/linuxthreads/sysdeps/avr32/pt-machine.h 2008-04-16 14:14:48 UTC (rev 21744)
+++ trunk/uClibc/libpthread/linuxthreads/sysdeps/avr32/pt-machine.h 2008-04-16 14:24:58 UTC (rev 21745)
@@ -18,16 +18,16 @@
static inline int
_test_and_set (int *p, int v) __THROW
{
- int result;
+ int result;
- __asm__ __volatile__(
- "/* Inline test and set */\n"
- " xchg %[old], %[mem], %[new]"
- : [old] "=&r"(result)
- : [mem] "r"(p), [new] "r"(v)
- : "memory");
+ __asm__ __volatile__(
+ "/* Inline test and set */\n"
+ " xchg %[old], %[mem], %[new]"
+ : [old] "=&r"(result)
+ : [mem] "r"(p), [new] "r"(v)
+ : "memory");
- return result;
+ return result;
}
extern long int testandset (int *spinlock);
@@ -37,7 +37,7 @@
PT_EI long int
testandset (int *spinlock)
{
- return _test_and_set(spinlock, 1);
+ return _test_and_set(spinlock, 1);
}
@@ -52,22 +52,22 @@
PT_EI int
__compare_and_swap(long int *p, long int oldval, long int newval)
{
- int result;
+ int result;
- __asm__ __volatile__(
- "/* Inline compare and swap */\n"
- "1: ssrf 5\n"
- " ld.w %[result], %[mem]\n"
- " eor %[result], %[old]\n"
- " brne 2f\n"
- " stcond %[mem], %[new]\n"
- " brne 1b\n"
- "2:"
- : [result] "=&r"(result), [mem] "=m"(*p)
- : "m"(*p), [new] "r"(newval), [old] "r"(oldval)
- : "cc", "memory");
+ __asm__ __volatile__(
+ "/* Inline compare and swap */\n"
+ "1: ssrf 5\n"
+ " ld.w %[result], %[mem]\n"
+ " eor %[result], %[old]\n"
+ " brne 2f\n"
+ " stcond %[mem], %[new]\n"
+ " brne 1b\n"
+ "2:"
+ : [result] "=&r"(result), [mem] "=m"(*p)
+ : "m"(*p), [new] "r"(newval), [old] "r"(oldval)
+ : "cc", "memory");
- return result == 0;
+ return result == 0;
}
#endif /* pt-machine.h */
Modified: trunk/uClibc/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h 2008-04-16 14:14:48 UTC (rev 21744)
+++ trunk/uClibc/libpthread/linuxthreads.old/sysdeps/avr32/pt-machine.h 2008-04-16 14:24:58 UTC (rev 21745)
@@ -18,16 +18,16 @@
static inline int
_test_and_set (int *p, int v)
{
- int result;
+ int result;
- __asm__ __volatile__(
- "/* Inline test and set */\n"
- " xchg %[old], %[mem], %[new]"
- : [old] "=&r"(result)
- : [mem] "r"(p), [new] "r"(v)
- : "memory");
+ __asm__ __volatile__(
+ "/* Inline test and set */\n"
+ " xchg %[old], %[mem], %[new]"
+ : [old] "=&r"(result)
+ : [mem] "r"(p), [new] "r"(v)
+ : "memory");
- return result;
+ return result;
}
extern long int testandset (int *spinlock);
@@ -37,7 +37,7 @@
PT_EI long int
testandset (int *spinlock)
{
- return _test_and_set(spinlock, 1);
+ return _test_and_set(spinlock, 1);
}
@@ -52,22 +52,22 @@
PT_EI int
__compare_and_swap(long int *p, long int oldval, long int newval)
{
- long int result;
+ long int result;
- __asm__ __volatile__(
- "/* Inline compare and swap */\n"
- "1: ssrf 5\n"
- " ld.w %[result], %[mem]\n"
- " eor %[result], %[old]\n"
- " brne 2f\n"
- " stcond %[mem], %[new]\n"
- " brne 1b\n"
- "2:"
- : [result] "=&r"(result), [mem] "=m"(*p)
- : "m"(*p), [new] "r"(newval), [old] "r"(oldval)
- : "cc", "memory");
+ __asm__ __volatile__(
+ "/* Inline compare and swap */\n"
+ "1: ssrf 5\n"
+ " ld.w %[result], %[mem]\n"
+ " eor %[result], %[old]\n"
+ " brne 2f\n"
+ " stcond %[mem], %[new]\n"
+ " brne 1b\n"
+ "2:"
+ : [result] "=&r"(result), [mem] "=m"(*p)
+ : "m"(*p), [new] "r"(newval), [old] "r"(oldval)
+ : "cc", "memory");
- return result == 0;
+ return result == 0;
}
#endif /* pt-machine.h */
More information about the uClibc-cvs
mailing list