about summary refs log tree commit diff
path: root/linuxthreads/sysdeps/sh/pt-machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/sysdeps/sh/pt-machine.h')
-rw-r--r--linuxthreads/sysdeps/sh/pt-machine.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/linuxthreads/sysdeps/sh/pt-machine.h b/linuxthreads/sysdeps/sh/pt-machine.h
index a54fa12da8..cdffeceee6 100644
--- a/linuxthreads/sysdeps/sh/pt-machine.h
+++ b/linuxthreads/sysdeps/sh/pt-machine.h
@@ -1,6 +1,6 @@
 /* Machine-dependent pthreads configuration and inline functions.
    SuperH version.
-   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Niibe Yutaka <gniibe@m17n.org>.
 
@@ -32,11 +32,11 @@ testandset (int *spinlock)
   __asm__ __volatile__(
        "tas.b	@%1\n\t"
        "movt	%0"
-       : "=z" (ret)
+       : "=r" (ret)
        : "r" (spinlock)
        : "memory", "cc");
 
-  return ret;
+  return (ret == 0);
 }