From owner-freebsd-threads@FreeBSD.ORG Fri Jun 20 10:49:31 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C478437B401 for ; Fri, 20 Jun 2003 10:49:31 -0700 (PDT) Received: from sccrmhc13.attbi.com (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 218AE43FA3 for ; Fri, 20 Jun 2003 10:49:31 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (sccrmhc13) with ESMTP id <20030620174930016009rmiae>; Fri, 20 Jun 2003 17:49:30 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id KAA57823; Fri, 20 Jun 2003 10:49:29 -0700 (PDT) Date: Fri, 20 Jun 2003 10:49:29 -0700 (PDT) From: Julian Elischer To: Igor Sysoev In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: Implementing TLS: step 1 X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2003 17:49:32 -0000 On Fri, 20 Jun 2003, Igor Sysoev wrote: > If we could sacrifice our current thread compatibility in 5.0-5.1 > then we could change kse_mailbox from > > struct kse_mailbox { > int km_version; /* Mailbox version */ > struct kse_thr_mailbox *km_curthread; /* Current thread */ > ... > > to > > struct kse_mailbox { > struct kse_thr_mailbox *km_curthread; /* Current thread */ > int km_version; /* Mailbox version */ > ... > > then x86's gs would still point to kse_mailbox, and gs:[0] would be > and TP pointer. Also we need to modify > > struct kse_thr_mailbox { > + void *tls; > ucontext_t tm_context; /* User thread context */ > ... > > And the static TLS must be allocated before kse_thr_mailbox. Yes. This is what I was thinking... > > > Igor Sysoev > http://sysoev.ru/en/ > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" >