From owner-freebsd-threads@FreeBSD.ORG Fri Jul 25 01:33:45 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 DD32037B401; Fri, 25 Jul 2003 01:33:45 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F14843FAF; Fri, 25 Jul 2003 01:33:45 -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 h6P8XfcJ017247; Fri, 25 Jul 2003 04:33:41 -0400 (EDT) Date: Fri, 25 Jul 2003 04:33:41 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: David Xu In-Reply-To: <009101c35284$6f943350$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 List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2003 08:33:46 -0000 On Fri, 25 Jul 2003, David Xu wrote: > From: "Daniel Eischen" > > > > On Fri, 25 Jul 2003, Terry Lambert wrote: > > > > > Daniel Eischen wrote: > > > > 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(). > > > > > > FWIW: One trick would be to use an "invalid" value for one of the > > > parameters on the existing call to mux you into an alternate > > > implementsion (which could even take additional parameters, for > > > obvious reasons). > > > > Possibly... > > > > i386_set_ldt(int start_sel, union descriptor *descs, int num_sels); > > > > You could use start_sel = 0 and num_sels = 1 to have it automatically > > find the first one not already allocated. The function already > > returns the first selector allocated. > > > Not only allocate, there needs a deallocate call. You could pass in NULL for descs... -- Dan Eischen