From owner-cvs-src@FreeBSD.ORG Fri Jun 27 05:07:46 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 A8AC837B401; Fri, 27 Jun 2003 05:07:46 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8D6143FE0; Fri, 27 Jun 2003 05:07: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 h5RC7jXh028916; Fri, 27 Jun 2003 08:07:45 -0400 (EDT) Date: Fri, 27 Jun 2003 08:07:45 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Marcel Moolenaar In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libpthread/arch/ia64/ia64 context.S X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@FreeBSD.org List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2003 12:07:47 -0000 On Fri, 27 Jun 2003, Daniel Eischen wrote: > On Thu, 26 Jun 2003, Marcel Moolenaar wrote: > > marcel 2003/06/26 23:15:13 PDT > > > > FreeBSD src repository > > > > Modified files: > > lib/libpthread/arch/ia64/ia64 context.S > > Log: > > Implement _ia64_save_context() and _ia64_restore_context(). Both > > functions are derived from the swapctx() and restorectx() (resp) > > from sys/ia64/ia64/context.s. The code is expected to be 99% > > correct, but has not yet been tested. > > > > Note that with these functions operating on mcontext_t, we also > > created the foundation upon which we can implement getcontext(2) > > and setcontext(2) replacements. It's not guaranteed that the use > > of these syscalls and _ia64_{save|restore}_context() on the same > > uicontext_t is actually going to work. Replacing the syscalls is > > now trivially achieved. > > For libkse anyways, [gs]etcontext(2) (or library versions of them) > are only used when delivering signals, and even then only under > certain circumstances (when signals are deferred due to being > in critical regions, I think). So there shouldn't really be > any impact for not having userland versions of these syscalls. Blech. I really should have my coffee before replying to email. We _do_ now use getcontext() (THR_GETCONTEXT) for the common case of switching to another thread without entering the UTS scheduler (e.g., the current thread yields in some way). Sorry for the confusion. -- Dan Eischen