From owner-freebsd-threads@FreeBSD.ORG Thu Jul 24 18:37:40 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 DAD2037B401; Thu, 24 Jul 2003 18:37:40 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3559C43FA3; Thu, 24 Jul 2003 18:37:40 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h6P1bZcJ013791; Thu, 24 Jul 2003 21:37:35 -0400 (EDT) Date: Thu, 24 Jul 2003 21:37:35 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: David Xu In-Reply-To: <005701c35238$dc713a00$0701a8c0@tiger> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: Julian Elischer 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 Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2003 01:37:41 -0000 On Fri, 25 Jul 2003, David Xu wrote: > > From: "Julian Elischer" > > > I was hoping to optimise by making the kse_create(mboxaddr) > > call allocate the LDT entry and set the gs register to point to the > > mailbox. making the two things differnt makes it less likely that > > making that optimisation makes sense. > > > > Dan has two fields in kse_mailbox: > > void *km_ksdaddr; /* KSE specific data address */ > uint32_t km_ksdsize; /* KSE specific data size */ > > I think it is used to tell kernel to map start address > of libkse's kse mailbox like above lib_kse_mailbox. Yes, that is what it is for. We really need this for amd64, so we might as well do it for x86. We'll need MD functions in the kernel to do this; they'll do nothing for all archs except x86 and amd64. -- Dan Eischen