summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/sysdeps
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2003-03-03 06:32:21 +0000
committerDavid McCullough <davidm@snapgear.com>2003-03-03 06:32:21 +0000
commitecd46eeb7e66c76a9518803b33fafb27d1e3c209 (patch)
tree98d76d941a25dd6e0a7f1ad9c04adbfeb165ea83 /libpthread/linuxthreads/sysdeps
parentb5cca43546bffef77ce8d5b5ce2670d5372ded65 (diff)
fix coldfire/68000 support properly this time, ifdef logic was back to
front.
Diffstat (limited to 'libpthread/linuxthreads/sysdeps')
-rw-r--r--libpthread/linuxthreads/sysdeps/m68k/pt-machine.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpthread/linuxthreads/sysdeps/m68k/pt-machine.h b/libpthread/linuxthreads/sysdeps/m68k/pt-machine.h
index bb6fb3fdb..d0c5e4c1a 100644
--- a/libpthread/linuxthreads/sysdeps/m68k/pt-machine.h
+++ b/libpthread/linuxthreads/sysdeps/m68k/pt-machine.h
@@ -36,10 +36,10 @@ testandset (int *spinlock)
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 @@ register char * stack_pointer __asm__ ("%sp");
/* 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)