From owner-freebsd-threads@FreeBSD.ORG Thu Jul 24 18:40:08 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 4549E37B401; Thu, 24 Jul 2003 18:40:08 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B16B43F3F; Thu, 24 Jul 2003 18:40:07 -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 h6P1e0cJ014182; Thu, 24 Jul 2003 21:40:00 -0400 (EDT) Date: Thu, 24 Jul 2003 21:40:00 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Julian Elischer In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: David Xu 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:40:08 -0000 On Thu, 24 Jul 2003, Julian Elischer wrote: > > On Fri, 25 Jul 2003, David Xu wrote: > > > > > > Did you make some progresses in this area ? > > It requires thatI rewrite the LDT code in WINE > because wine just clobbers the LDT without looking to see if anyone else > is using entries.. > > > My aim was to have a call i386_set_ldt that takes an addr and length > and returns teh value that needs to be set into a segment register > in order to access that segment (or error if no more segments > available). Wine could use it from userland and kse_create could use it > from inside the kernel to set up a segment that covers the mailbox. > kse_create would set it into the %gs register of the newly created kse. > > having it done by by the library with the 'shotgun' code > is probably good enough for now I'd like to try and get his implemented in this next round of changes. If you are going to add a system call, it's easy enough just to call the guts of it from kse_create(). -- Dan Eischen