From owner-cvs-all@FreeBSD.ORG Wed May 21 01:21:25 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 178EC37B401; Wed, 21 May 2003 01:21:25 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A98DF43FB1; Wed, 21 May 2003 01:21:24 -0700 (PDT) (envelope-from mtm@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4L8LO0U000931; Wed, 21 May 2003 01:21:24 -0700 (PDT) (envelope-from mtm@repoman.freebsd.org) Received: (from mtm@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4L8LOhr000926; Wed, 21 May 2003 01:21:24 -0700 (PDT) Message-Id: <200305210821.h4L8LOhr000926@repoman.freebsd.org> From: Mike Makonnen Date: Wed, 21 May 2003 01:21:24 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libthr/arch/i386/i386 _setcurthread.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 May 2003 08:21:25 -0000 mtm 2003/05/21 01:21:24 PDT FreeBSD src repository Modified files: lib/libthr/arch/i386/i386 _setcurthread.c Log: o Make the defenition of _set_curthread() match its declaration in thr_private.h o Lock down the ldt_entries array and ldt_free, which points to the next free slot. As noted in the comments, it's necessary to special case the initial_thread because %gs is not setup for it yet. This is ok because that early in the program there won't be any reentrancy issues anyways. Approved by: re/blanket libthr Revision Changes Path 1.5 +27 -5 src/lib/libthr/arch/i386/i386/_setcurthread.c