From owner-cvs-all@FreeBSD.ORG Tue Aug 5 12:33:02 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 D455D37B401; Tue, 5 Aug 2003 12:33:02 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B846C43F75; Tue, 5 Aug 2003 12:33:01 -0700 (PDT) (envelope-from marcel@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 h75JX10U055320; Tue, 5 Aug 2003 12:33:01 -0700 (PDT) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h75JX1nx055319; Tue, 5 Aug 2003 12:33:01 -0700 (PDT) Message-Id: <200308051933.h75JX1nx055319@repoman.freebsd.org> From: Marcel Moolenaar Date: Tue, 5 Aug 2003 12:33:01 -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/libpthread/arch/ia64/ia64 context.S 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: Tue, 05 Aug 2003 19:33:03 -0000 marcel 2003/08/05 12:33:01 PDT FreeBSD src repository Modified files: lib/libpthread/arch/ia64/ia64 context.S Log: o In _ia64_save_context() clear the return registers except for r8. We write 1 for r8 in the context so that _ia64_restore_context() will return with a non-zero value. _ia64_save_context() always return 0. o In _ia64_restore_context(), don't restore the thread pointer. It is not normally part of the context. Also, restore the return registers. We get called for contexts created by getcontext(), which means we have to restore all the syscall return values. Revision Changes Path 1.3 +25 -13 src/lib/libpthread/arch/ia64/ia64/context.S