Skip to content

Commit

Permalink
[BZ #2167] * sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h (pthre…
Browse files Browse the repository at this point in the history
…ad_mutex_t): Follow changes for other archs. Based on patch by Jim Gifford <patches@jg555.com>.

2006-01-18  Andreas Jaeger  <aj@suse.de>

	[BZ #838]
	* sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
	(pthread_mutex_t): Follow changes for other archs.  Based on patch
	by Jim Gifford <patches@jg555.com>.
  • Loading branch information
Andreas Jaeger committed Jan 18, 2006
1 parent f0cf090 commit 5f9f21e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
7 changes: 7 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2006-01-18 Andreas Jaeger <aj@suse.de>

[BZ #838]
* sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
(pthread_mutex_t): Follow changes for other archs. Based on patch
by Jim Gifford <patches@jg555.com>.

2006-01-13 Richard Henderson <rth@redhat.com>

* sysdeps/alpha/tls.h (tcbhead_t): Rename member to __private.
Expand Down
17 changes: 13 additions & 4 deletions nptl/sysdeps/unix/sysv/linux/mips/bits/pthreadtypes.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Machine-specific pthread type layouts. MIPS version.
Copyright (C) 2005 Free Software Foundation, Inc.
Copyright (C) 2005, 2006 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
Expand Down Expand Up @@ -59,7 +59,7 @@ typedef union
type is deliberately not exposed. */
typedef union
{
struct
struct __pthread_mutex_s
{
int __lock;
unsigned int __count;
Expand All @@ -70,10 +70,19 @@ typedef union
/* KIND must stay at this position in the structure to maintain
binary compatibility. */
int __kind;
#if _MIPS_SIM != _ABI64
#if _MIPS_SIM == _ABI64
int __spins;
struct __pthread_mutex_s *__next;
struct __pthread_mutex_s *__prev;
# define __PTHREAD_MUTEX_HAVE_PREV 1
#else
unsigned int __nusers;
__extension__ union
{
int __spins;
struct __pthread_mutex_s *__next;
};
#endif
int __spins;
} __data;
char __size[__SIZEOF_PTHREAD_MUTEX_T];
long int __align;
Expand Down

0 comments on commit 5f9f21e

Please sign in to comment.