From owner-cvs-src@FreeBSD.ORG Thu Jul 24 12:19:52 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D696537B401; Thu, 24 Jul 2003 12:19:52 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A04243F3F; Thu, 24 Jul 2003 12:19:49 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h6OJJnwO028496; Thu, 24 Jul 2003 12:19:49 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h6OJJhAq001054; Thu, 24 Jul 2003 12:19:44 -0700 (PDT) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h6OJJhq4001053; Thu, 24 Jul 2003 12:19:43 -0700 (PDT) (envelope-from marcel) Date: Thu, 24 Jul 2003 12:19:43 -0700 From: Marcel Moolenaar To: John Baldwin Message-ID: <20030724191943.GA1028@dhcp01.pn.xcllnt.net> References: <200307240751.h6O7pnsd085577@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libthr/arch/alpha/alpha _curthread.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2003 19:19:53 -0000 On Thu, Jul 24, 2003 at 03:08:32PM -0400, John Baldwin wrote: > > On 24-Jul-2003 Marcel Moolenaar wrote: > > marcel 2003/07/24 00:51:49 PDT > > > > FreeBSD src repository > > > > Modified files: > > lib/libthr/arch/alpha/alpha _curthread.c > > Log: > > Implement _get_curthread and _set_curthread. We use GCCs builtin > > function this, which expands to PAL calls (rduniq and wruniq). > > This needs adjustment when TLS is implemented. > > This trashes SMP since we use the per-CPU unique value already > to maintain the per-cpu data pointer. Writing to the per-CPU unique value is an unprivileged operation. You cannot possibly use that for in-kernel use without saving and restoring it on kernel exit/entry. Which is what needs to be done. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net