From owner-freebsd-sparc64@FreeBSD.ORG Sun Oct 5 09:46:00 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3FAC16A4B3; Sun, 5 Oct 2003 09:46:00 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 737DE43FBD; Sun, 5 Oct 2003 09:45:59 -0700 (PDT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) h95Gjst2018638 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sun, 5 Oct 2003 18:45:57 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id h95GjrS8005872 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 5 Oct 2003 18:45:54 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.10/8.12.10) with ESMTP id h95Gjr2u018174; Sun, 5 Oct 2003 18:45:53 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.10/8.12.10/Submit) id h95Gjrr7018173; Sun, 5 Oct 2003 18:45:53 +0200 (CEST) (envelope-from ticso) Date: Sun, 5 Oct 2003 18:45:53 +0200 From: Bernd Walter To: deischen@freebsd.org Message-ID: <20031005164552.GG13791@cicely12.cicely.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD cicely12.cicely.de 5.1-CURRENT alpha User-Agent: Mutt/1.5.4i cc: sparc64@freebsd.org Subject: Re: Review for libpthread support X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Oct 2003 16:46:01 -0000 On Sun, Oct 05, 2003 at 12:21:28PM -0400, Daniel Eischen wrote: > Hi guys, > > I have a patch for adding libpthread support for sparc64. It's jake's > patch, with a few mods by myself. I'd like for some folks to look it > over. I haven't tested it; I need a couple of questions answered > first so I can fill in a missing piece. > > o Can someone look at the end of __thr_getcontext (line 524 of > the patch)? I need to test %i2 for NULL and branch to 1 if true. > > +/* bz %i2, 1f */ > + stx %i1, [%i2] > +1: ldx [%sp], %i1 /* restore %i1 */ > + ldx [%sp + 8], %i2 /* restore %i2 */ > > What's the magic instruction I should use? cmp %i2, 0 be 1f -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de