From owner-freebsd-threads@FreeBSD.ORG Thu Jul 24 16:01:04 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 BE31537B401; Thu, 24 Jul 2003 16:01:04 -0700 (PDT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F81743F3F; Thu, 24 Jul 2003 16:01:04 -0700 (PDT) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([12.233.125.100]) by attbi.com (rwcrmhc13) with ESMTP id <2003072423005801500o821pe>; Thu, 24 Jul 2003 23:00:58 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA71059; Thu, 24 Jul 2003 16:00:57 -0700 (PDT) Date: Thu, 24 Jul 2003 16:00:55 -0700 (PDT) From: Julian Elischer To: David Xu In-Reply-To: <002501c35230$1205be60$0701a8c0@tiger> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: deischen@freebsd.org cc: threads@freebsd.org cc: marcel@xcllnt.net Subject: Re: KSD/TSD take 2 (was: KSE critical regions) 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: Thu, 24 Jul 2003 23:01:05 -0000 On Fri, 25 Jul 2003, David Xu wrote: > > ----- Original Message ----- > From: "Julian Elischer" > To: > Cc: ; "David Xu" ; > Sent: Friday, July 25, 2003 4:59 AM > Subject: Re: KSD/TSD take 2 (was: KSE critical regions) > to the kernel. > > > > userland can always adapt the layout by: > > struct lib_kse_mailbox { > void *TLS_tcb; > struct kse_mailbox kmbx; > }; > > and set base address to lib_kse_mailbox, userland can > do whatever it wants to do. same thing can be done for > thread mailbox. > > I don't think too many fields not related to interaction > between kernel and userland should be pushed into mailbox, > it is too ugly. I agree.. as long as we state very strongly that the segment register points to the TCB and NOT the mailbox, and that the mailbox may not be the first item in the TCB, then it works ok..