From owner-cvs-src@FreeBSD.ORG Thu Jun 26 23:15:14 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 2DE9437B401; Thu, 26 Jun 2003 23:15:14 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2A0643FDD; Thu, 26 Jun 2003 23:15:13 -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 h5R6FD0U012905; Thu, 26 Jun 2003 23:15:13 -0700 (PDT) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5R6FDYM012904; Thu, 26 Jun 2003 23:15:13 -0700 (PDT) Message-Id: <200306270615.h5R6FDYM012904@repoman.freebsd.org> From: Marcel Moolenaar Date: Thu, 26 Jun 2003 23:15:13 -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-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: Fri, 27 Jun 2003 06:15:14 -0000 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. This commit completes the ia64 port of libpthread itself (modulo testing and bugfixes). Revision Changes Path 1.2 +285 -0 src/lib/libpthread/arch/ia64/ia64/context.S