From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25632 invoked by alias); 27 Dec 2005 06:20:44 -0000 Received: (qmail 25616 invoked by uid 22791); 27 Dec 2005 06:20:43 -0000 X-Spam-Check-By: sourceware.org Received: from dsl027-180-168.sfo1.dsl.speakeasy.net (HELO sunset.davemloft.net) (216.27.180.168) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 27 Dec 2005 06:20:42 +0000 Received: from localhost ([127.0.0.1] ident=davem) by sunset.davemloft.net with esmtp (Exim 4.60) (envelope-from ) id 1Er8CW-00008P-Bh; Mon, 26 Dec 2005 22:20:48 -0800 Date: Tue, 27 Dec 2005 06:20:00 -0000 Message-Id: <20051226.222048.07641650.davem@davemloft.net> To: drepper@redhat.com Cc: libc-hacker@sources.redhat.com Subject: Re: nptl patches From: "David S. Miller" In-Reply-To: <43B09996.5080402@redhat.com> References: <43B09996.5080402@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00047.txt.bz2 From: Ulrich Drepper Date: Mon, 26 Dec 2005 17:32:06 -0800 > The patches I checked in work fine on x86. I couldn't test x86-64 > because I experience some mysterious build problems. I think they > existed before the set of patches got checked in. Other archs need > adjustment of the pthread_mutex_t type definition. This should take care of Sparc. 2005-12-26 David S. Miller * sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Add __next field to pthread_mutex_t. Index: sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h =================================================================== RCS file: /cvs/glibc/libc/nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h,v retrieving revision 1.8 diff -u -r1.8 pthreadtypes.h --- sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h 28 Sep 2004 10:33:54 -0000 1.8 +++ sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h 27 Dec 2005 06:18:42 -0000 @@ -60,7 +60,7 @@ /* Data structures for mutex handling. The structure of the attribute type is deliberately not exposed. */ -typedef union +typedef union __pthread_mutex_u { struct { @@ -76,7 +76,11 @@ #if __WORDSIZE != 64 unsigned int __nusers; #endif - int __spins; + union + { + int __spins; + union __pthread_mutex_u *__next; + }; } __data; char __size[__SIZEOF_PTHREAD_MUTEX_T]; long int __align;