[uClibc-cvs] uClibc/libpthread/linuxthreads/sysdeps/m68k pt-machine.h,1.3,1.4
David McCullough
davidm at uclibc.org
Fri Feb 28 04:12:12 UTC 2003
Update of /var/cvs/uClibc/libpthread/linuxthreads/sysdeps/m68k
In directory winder:/tmp/cvs-serv24178
Modified Files:
pt-machine.h
Log Message:
restore the coldfire changes
Index: pt-machine.h
===================================================================
RCS file: /var/cvs/uClibc/libpthread/linuxthreads/sysdeps/m68k/pt-machine.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- pt-machine.h 27 Feb 2003 18:12:50 -0000 1.3
+++ pt-machine.h 28 Feb 2003 04:12:09 -0000 1.4
@@ -35,7 +35,12 @@
{
char ret;
- __asm__ __volatile__("tas %1; sne %0"
+ __asm__ __volatile__(
+#ifdef __mcf5200__
+ "bset #7,%1; sne %0"
+#else
+ "tas %1; sne %0"
+#endif
: "=dm"(ret), "=m"(*spinlock)
: "m"(*spinlock)
: "cc");
@@ -52,6 +57,7 @@
/* Compare-and-swap for semaphores. */
+#ifndef __mcf5200__
#define HAS_COMPARE_AND_SWAP
PT_EI int
__compare_and_swap (long int *p, long int oldval, long int newval)
@@ -65,5 +71,6 @@
return ret;
}
+#endif
#endif /* pt-machine.h */
More information about the uClibc-cvs
mailing list