From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26266 invoked by alias); 18 Nov 2004 09:07:03 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 26109 invoked from network); 18 Nov 2004 09:07:03 -0000 Received: from unknown (HELO r-rr.iij4u.or.jp) (210.130.0.76) by sourceware.org with SMTP; 18 Nov 2004 09:07:03 -0000 Received: from localhost (frgw.3in.ne.jp [210.251.121.226]) by r-rr.iij4u.or.jp (8.11.6+IIJ/8.11.6) with ESMTP id iAI970720472 for ; Thu, 18 Nov 2004 18:07:01 +0900 (JST) Date: Thu, 18 Nov 2004 09:07:00 -0000 Message-Id: <20041118.180640.48377359.kkojima@rr.iij4u.or.jp> To: libc-hacker@sources.redhat.com Subject: [PATCH] SH: A tiny NPTL fix From: Kaz Kojima Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00042.txt.bz2 Hi, The patch below is to pass the correct bias parameter to the REGISTER macro at the definition of DB_THREAD_SELF. Regards, kaz -- 2004-11-18 Kaz Kojima * sysdeps/sh/tls.h (DB_THREAD_SELF): Set the correct bias parameter to REGISTER macro. diff -u3prN ORIG/libc/nptl/sysdeps/sh/tls.h LOCAL/libc/nptl/sysdeps/sh/tls.h --- ORIG/libc/nptl/sysdeps/sh/tls.h Sat Jan 10 23:23:23 2004 +++ LOCAL/libc/nptl/sysdeps/sh/tls.h Wed Nov 17 16:41:20 2004 @@ -118,7 +118,8 @@ typedef struct __self - 1;}) /* Magic for libthread_db to know how to do THREAD_SELF. */ -# define DB_THREAD_SELF REGISTER (32, 32, REG_GBR * 4, 0) +# define DB_THREAD_SELF \ + REGISTER (32, 32, REG_GBR * 4, -sizeof (struct pthread)) /* Read member of the thread descriptor directly. */ # define THREAD_GETMEM(descr, member) (descr->member)