From owner-freebsd-arch@FreeBSD.ORG Tue Oct 25 23:49:22 2005 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6399016A41F; Tue, 25 Oct 2005 23:49:22 +0000 (GMT) (envelope-from peter@wemm.org) Received: from daintree.corp.yahoo.com (daintree.corp.yahoo.com [216.145.52.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3542043D46; Tue, 25 Oct 2005 23:49:22 +0000 (GMT) (envelope-from peter@wemm.org) Received: by daintree.corp.yahoo.com (Postfix, from userid 2154) id EE45F197A9; Tue, 25 Oct 2005 16:49:21 -0700 (PDT) From: Peter Wemm To: Daniel Eischen Date: Tue, 25 Oct 2005 16:49:21 -0700 User-Agent: KMail/1.8.2 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510251649.21425.peter@wemm.org> Cc: freebsd-arch@freebsd.org Subject: Re: libc_r is deprecated X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2005 23:49:22 -0000 On Tuesday 25 October 2005 04:24 pm, Daniel Eischen wrote: > On Tue, 25 Oct 2005, Peter Wemm wrote: > > (libpthread is a major drama to get working) > > Curious... Why is that? Because kern_kse.c wants to do copyin/copyout of the 64 bit format thread mailboxes, even when the userland is expecting and using the 32 bit layout of mailboxes. Not to mention that the first item in one of the structs is a ucontext_t, which is different sizes on i386 and amd64. It might be possible to build a special hybrid 32 bit libpthread.so that uses the 64 bit layout of these structs. But then it has to convert the ucontext itself and deal with both formats. I expect libthr to be easier to get working because it doesn't have a binary blob for its communication format. I haven't checked for a while. It used to depend on the missing 32 bit wrappers for getcontext/setcontext/swapcontext. But those have been implemented now, there probably isn't much more work needed to get it working. But again, I haven't looked for a while. -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5