From owner-freebsd-threads@FreeBSD.ORG Fri Jul 25 01:08:58 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 1C81637B401; Fri, 25 Jul 2003 01:08:58 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB82443F93; Fri, 25 Jul 2003 01:08:57 -0700 (PDT) (envelope-from davidxu@freebsd.org) Received: from tiger (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with SMTP id h6P88sUp088635; Fri, 25 Jul 2003 01:08:55 -0700 (PDT) (envelope-from davidxu@freebsd.org) Message-ID: <009101c35284$6f943350$0701a8c0@tiger> From: "David Xu" To: , "Terry Lambert" References: Date: Fri, 25 Jul 2003 16:12:02 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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:08:58 -0000 ----- Original Message -----=20 From: "Daniel Eischen" To: "Terry Lambert" Cc: ; "David Xu" ; "Julian = Elischer" ; Sent: Friday, July 25, 2003 3:43 PM Subject: Re: KSD/TSD take 2 (was: KSE critical regions) > On Fri, 25 Jul 2003, Terry Lambert wrote: >=20 > > 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(). > >=20 > > 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). >=20 > Possibly... >=20 > i386_set_ldt(int start_sel, union descriptor *descs, int = num_sels); >=20 > You could use start_sel =3D 0 and num_sels =3D 1 to have it = automatically > find the first one not already allocated. The function already > returns the first selector allocated. >=20 Not only allocate, there needs a deallocate call. > --=20 > Dan Eischen >=20 > _______________________________________________ > 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" >