[uClibc-cvs] uClibc/libpthread/linuxthreads/sysdeps/m68k pt-machine.h,1.4,1.5
David McCullough
davidm at uclibc.org
Mon Mar 3 06:32:25 UTC 2003
Update of /var/cvs/uClibc/libpthread/linuxthreads/sysdeps/m68k
In directory winder:/tmp/cvs-serv2642/libpthread/linuxthreads/sysdeps/m68k
Modified Files:
pt-machine.h
Log Message:
fix coldfire/68000 support properly this time, ifdef logic was back to
front.
Index: pt-machine.h
===================================================================
RCS file: /var/cvs/uClibc/libpthread/linuxthreads/sysdeps/m68k/pt-machine.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- pt-machine.h 28 Feb 2003 04:12:09 -0000 1.4
+++ pt-machine.h 3 Mar 2003 06:32:21 -0000 1.5
@@ -36,10 +36,10 @@
char ret;
__asm__ __volatile__(
-#ifdef __mcf5200__
- "bset #7,%1; sne %0"
-#else
+#if !defined(__mcf5200__) && !defined(__m68000)
"tas %1; sne %0"
+#else
+ "bset #7,%1; sne %0"
#endif
: "=dm"(ret), "=m"(*spinlock)
: "m"(*spinlock)
@@ -57,7 +57,7 @@
/* Compare-and-swap for semaphores. */
-#ifndef __mcf5200__
+#if !defined(__mcf5200__) && !defined(__mc68000)
#define HAS_COMPARE_AND_SWAP
PT_EI int
__compare_and_swap (long int *p, long int oldval, long int newval)
More information about the uClibc-cvs
mailing list