From owner-freebsd-arch Tue Nov 21 16:52:19 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 D08FD37B4CF for ; Tue, 21 Nov 2000 16:52:14 -0800 (PST) Received: from mogadishu-42.budapest.interware.hu ([195.70.52.106] helo=elischer.org) by mail.interware.hu with esmtp (Exim 3.16 #1 (Debian)) id 13yO8z-0005gP-00; Wed, 22 Nov 2000 01:52:13 +0100 Message-ID: <3A1B18B8.37DDA213@elischer.org> Date: Tue, 21 Nov 2000 16:52: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: Jonathan Lemon Cc: Daniel Eischen , arch@FreeBSD.ORG Subject: Re: Thread-specific data and KSEs References: <20001121175655.T19895@prism.flugsvamp.com> Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jonathan Lemon wrote: > > On Tue, Nov 21, 2000 at 06:51:59PM -0500, Daniel Eischen wrote: > > I'm going to start working on the user-side of the new threads > > library. I need to be able to quickly get at the current KSE > > (or perhaps KSEG). Can we define a register on each architecture > > that should not be used by FreeBSD ABI compliant applications? > > The register doesn't have to be 32 bits or larger, just large > > enough to hold the maximum number of KSEs (or KSEGs). > > Um. On a i386 I'm not sure this will be practical, there aren't > a whole lot of architecturally visible registers for use by the > application. As I just mentionned in other email, the beauty of the KSE scheme is that the kernel keeps track of it for you because the upcalls come back with stacks in different places, so if you safe the 'current thread' on that stack, you have it where you need it. > -- > Jonathan > > 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