From owner-freebsd-threads@FreeBSD.ORG Wed Jun 18 16:18:12 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 436D437B401 for ; Wed, 18 Jun 2003 16:18:12 -0700 (PDT) Received: from h132-197-179-27.gte.com (h132-197-179-27.gte.com [132.197.179.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A81B43FA3 for ; Wed, 18 Jun 2003 16:18:11 -0700 (PDT) (envelope-from ak03@gte.com) Received: from kanpc.gte.com (ak03@localhost [127.0.0.1]) h5INHXTO071359; Wed, 18 Jun 2003 19:17:33 -0400 (EDT) (envelope-from ak03@kanpc.gte.com) Received: (from ak03@localhost) by kanpc.gte.com (8.12.9/8.12.9/Submit) id h5INHSGN071358; Wed, 18 Jun 2003 19:17:28 -0400 (EDT) Date: Wed, 18 Jun 2003 19:17:28 -0400 From: Alexander Kabaev To: Marcel Moolenaar Message-Id: <20030618191728.2fc32bd9.ak03@gte.com> In-Reply-To: <20030618225517.GA64374@ns1.xcllnt.net> References: <20030618182638.GA63660@ns1.xcllnt.net> <20030618225517.GA64374@ns1.xcllnt.net> Organization: Verizon Data Services X-Mailer: Sylpheed version 0.9.0claws25 (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: David Xu cc: Julian Elischer cc: threads@freebsd.org Subject: Re: Nvidia, TLS and __thread keyword -- an observation X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jun 2003 23:18:12 -0000 On Wed, 18 Jun 2003 15:55:17 -0700 Marcel Moolenaar wrote: > On Wed, Jun 18, 2003 at 03:19:30PM -0700, Julian Elischer wrote: > > > > Marcel, are you (or do you kno of anyone else) doing anything on > > TLS? > > We can approach it like this (just an example to bootstrap the > work): > > o Agree on a version of GCC we'll use during prototyping or wait > for GCC to be updated in the tree. > o Implement static TLS in libthr. > o Test. > o Implement dynamic TLS in libthr and RTLD. Concurrently implement > static TLS in libkse. > o Test static TLS in libkse. > o Finish dynamic TLS in libthr/RTLD and start dynamic TLS in libkse. > o Test libthr (finish dynamic TLS in libkse). > o Test libkse. > > I deliberately don't want to deal with libc_r, but if people think > we should make that work too than we simply don't deal with libc_r > on ia64. I announced my intention to work on rtld side of TLS support some time ago and I already have some work in progress. Interested parties can easily compile GCC 3.3 port with TLS support. Run 'make patch' in the ports directory and then edit work/gcc-3.3/gcc/configure to look for binutils 2.13 instead of 2.14 while testing for the platform TLS support. Compile and install the port. -- Alexander Kabaev