2 ===================================================================
3 RCS file: /glibc/cvsfiles/libc/db2/db_int.h,v
4 retrieving revision 1.10
5 diff -u -r1.10 db_int.h
6 --- glibc-2.1.2/db2/db_int.h 1999/06/16 14:27:59 1.10
7 +++ glibc-2.1.2/db2/db_int.h 1999/08/30 21:26:15
9 /*******************************************************
11 *******************************************************/
12 -typedef unsigned char tsl_t;
13 +typedef u_int32_t tsl_t;
17 Index: db2/mutex/mutex.c
18 ===================================================================
19 RCS file: /glibc/cvsfiles/libc/db2/mutex/mutex.c,v
20 retrieving revision 1.7
22 --- glibc-2.1.2/db2/mutex/mutex.c 1999/06/13 11:24:41 1.7
23 +++ glibc-2.1.2/db2/mutex/mutex.c 1999/08/30 21:26:16
28 +#ifdef HAVE_ASSEM_ALPHA
33 /* Win16 spinlocks are simple because we cannot possibly be preempted. */
35 Index: db2/mutex/alpha.h
36 ===================================================================
37 --- /dev/null Tue May 5 13:32:27 1998
38 +++ glibc-2.1.2/db2/mutex/alpha.h Mon Aug 30 14:21:09 1999
40 +/* For alpha, 0 is clear, 1 is set. */
43 +#define TSL_SET(tsl) ({ \
44 + register tsl_t *__l = (tsl); \
47 + "1: ldl_l %0,%1\n" \
54 + : "=&r"(__r), "=m"(*__l) : "m"(*__l) : "memory"); \
60 +#include <alpha/builtins.h>
61 +#define TSL_SET(tsl) (__LOCK_LONG_RETRY((tsl), 1) != 0)
64 +#define TSL_UNSET(tsl) (*(tsl) = 0)
65 +#define TSL_INIT(tsl) TSL_UNSET(tsl)
66 Index: sysdeps/alpha/Makefile
67 ===================================================================
68 RCS file: /glibc/cvsfiles/libc/sysdeps/alpha/Makefile,v
69 retrieving revision 1.15
70 diff -u -r1.15 Makefile
71 --- glibc-2.1.2/sysdeps/alpha/Makefile 1998/06/27 09:50:41 1.15
72 +++ glibc-2.1.2/sysdeps/alpha/Makefile 1999/08/30 21:34:00
74 -# Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
75 +# Copyright (C) 1993, 94, 95, 96, 97, 99 Free Software Foundation, Inc.
76 # This file is part of the GNU C Library.
77 # Contributed by Brendan Kehoe (brendan@zen.org).
80 # License along with the GNU C Library; see the file COPYING.LIB. If not,
81 # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
82 # Boston, MA 02111-1307, USA.
85 +CPPFLAGS += -DHAVE_SPINLOCKS=1 -DHAVE_ASSEM_ALPHA=1
89 sysdep_routines += _mcount