From owner-freebsd-threads@FreeBSD.ORG Fri Jun 20 00:37:21 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 3A50037B401 for ; Fri, 20 Jun 2003 00:37:21 -0700 (PDT) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5865E43FAF for ; Fri, 20 Jun 2003 00:37:20 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from user-uinj93o.dialup.mindspring.com ([165.121.164.120] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 19TGSP-0003NK-00; Fri, 20 Jun 2003 00:37:14 -0700 Message-ID: <3EF2B952.64E731F9@mindspring.com> Date: Fri, 20 Jun 2003 00:35:46 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Julian Elischer References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4704f3b1f64e4b4fc8a7f44aa2c236866667c3043c0873f7e350badd9bab72f9c350badd9bab72f9c cc: threads@freebsd.org cc: Marcel Moolenaar Subject: Re: Implementing TLS: step 1 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, 20 Jun 2003 07:37:21 -0000 Julian Elischer wrote: > The big cost is that a processin x86 can only have a limited number of > segments set up in teh Local descriptor table (LDT). > I forget the actual number but i vaguely remember that it is 16383 or > 8191 or something. 65536, but it includes the recursive mapping and the call trap, etc., so it's reall 65531. This is one reason we don't use the TSS for context switching, and why Linux, which used to use the TSS, doesn't use it any more. -- Terry