From owner-freebsd-arch Sun Jan 6 14:40:53 2002 Delivered-To: freebsd-arch@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id E73CC37B400 for ; Sun, 6 Jan 2002 14:40:51 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 76DDF81E08; Sun, 6 Jan 2002 16:40:46 -0600 (CST) Date: Sun, 6 Jan 2002 16:40:46 -0600 From: Alfred Perlstein To: Archie Cobbs Cc: Dan Eischen , arch@FreeBSD.ORG Subject: Re: Request for review: getcontext, setcontext, etc Message-ID: <20020106164046.A14427@elvis.mu.org> References: <20020106032709.A82406@elvis.mu.org> <200201062000.g06K0La35178@arch20m.dellroad.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200201062000.g06K0La35178@arch20m.dellroad.org>; from archie@dellroad.org on Sun, Jan 06, 2002 at 12:00:21PM -0800 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Archie Cobbs [020106 14:09] wrote: > Alfred Perlstein writes: > > > Is there a reason that getcontext and setcontext need to be > > > system calls? > > > > Atomicity? > > That can't be why.. otherwise this would imply that just because > something is written in assembly instead of C that it could have > atomicity problems. > > BTW, I think this adding these is a great idea.. e.g., the pth port > can take advantage of these as well. http://www.opengroup.org/onlinepubs/007908799/xsh/ucontext.h.html Defines a signal mask switchover, that's why I assumed some degree of atomicity help from the kernel. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message