From owner-freebsd-arch Thu Nov 30 8:23:38 2000 Delivered-To: freebsd-arch@freebsd.org Received: from mail.interware.hu (mail.interware.hu [195.70.32.130]) by hub.freebsd.org (Postfix) with ESMTP id 4C81837B400 for ; Thu, 30 Nov 2000 08:23:35 -0800 (PST) Received: from luanda-16.budapest.interware.hu ([195.70.51.16] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 141WUc-0001yp-00; Thu, 30 Nov 2000 17:23:31 +0100 Message-ID: <3A2664AC.493B4101@elischer.org> Date: Thu, 30 Nov 2000 06:31:08 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: Tony Finch Cc: arch@freebsd.org Subject: Re: Thread-specific data and KSEs References: <20001122133421.S18037@fw.wintelcom.net> <20001130065503.E58294@hand.dotat.at> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Tony Finch wrote: > > Daniel Eischen wrote: > >On Wed, 22 Nov 2000, Alfred Perlstein wrote: > >> > >> Was there something wrong with the suggestion to put the local info > >> on the stack? I just don't see it being discussed at all. > > > >Yes, I stated that it could not be used. We want to provide a POSIX > >complaint API, and this dictates that applications be able to create > >stacks of their own size and choosing. We can't rely on stacks being > >any particular size, or starting at any particular address. > > Additionally, wouldn't you have to walk up the stack to find its base? > (which I guess would be a bit more expensive than dereferencing %gs) No, you start each stack on some multiple of (say) 1MB and then you just or it with 0xfffff to find the top of the stack.. (This is what one of the MACH threads packages used to do) > > Tony. > -- > f.a.n.finch dot@dotat.at fanf@covalent.net Chad for President! > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-arch" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000 ---> X_.---._/ presently in: Budapest v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message