Browse Source

fix coldfire/68000 support properly this time, ifdef logic was back to
front.

David McCullough 22 years ago
parent
commit
ecd46eeb7e
1 changed files with 4 additions and 4 deletions
  1. 4 4
      libpthread/linuxthreads/sysdeps/m68k/pt-machine.h

+ 4 - 4
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)