Date: Sun, 5 Oct 2003 18:45:53 +0200 From: Bernd Walter <ticso@cicely12.cicely.de> To: deischen@freebsd.org Cc: sparc64@freebsd.org Subject: Re: Review for libpthread support Message-ID: <20031005164552.GG13791@cicely12.cicely.de> In-Reply-To: <Pine.GSO.4.10.10310051209230.13906-100000@pcnet5.pcnet.com> References: <Pine.GSO.4.10.10310051209230.13906-100000@pcnet5.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031005164552.GG13791>