+2000-4-10 kaz Kojima <kkojima@rr.iij4u.or.jp>
+
+ * sysdeps/sh/stackinfo.h: New file.
+
2001-04-10 Ulrich Drepper <drepper@redhat.com>
* locale/tst-C-locale.c (run_test): Add tests for locale objects.
+2001-04-10 kaz Kojima <kkojima@rr.iij4u.or.jp>
+
+ * sysdeps/sh/pspinlock.c (__pthread_spin_lock): Fix a reverse
+ test.
+ (__pthread_spin_trylock): Likewise.
+ * sysdeps/sh/pt-machine.h (testandset): Likewise.
+
2001-04-10 Ulrich Drepper <drepper@redhat.com>
* join.c (pthread_exit): Move code to new function __pthread_do_exit
/* POSIX spinlock implementation. SH version.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
: "=r" (val)
: "r" (lock)
: "memory");
- while (val != 0);
+ while (val == 0);
return 0;
}
: "=r" (val)
: "r" (lock)
: "memory");
- return val ? EBUSY : 0;
+ return val ? 0 : EBUSY;
}
weak_alias (__pthread_spin_trylock, pthread_spin_trylock)
/* 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>.
__asm__ __volatile__(
"tas.b @%1\n\t"
"movt %0"
- : "=z" (ret)
+ : "=r" (ret)
: "r" (spinlock)
: "memory", "cc");
- return ret;
+ return (ret == 0);
}
}
CLASSTEST (alnum);
CLASSTEST (alpha);
+ CLASSTEST (blank);
CLASSTEST (cntrl);
CLASSTEST (digit);
CLASSTEST (lower);
MAPTEST (lower);
MAPTEST (upper);
}
+
+ __freelocale (loc);
}
return result;
--- /dev/null
+/* Copyright (C) 2001 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+/* This file contains a bit of information about the stack allocation
+ of the processor. */
+
+#ifndef _STACKINFO_H
+#define _STACKINFO_H 1
+
+/* On SH the stack grows down. */
+#define _STACK_GROWS_DOWN 1
+
+#endif /* stackinfo.h */