From owner-cvs-all@FreeBSD.ORG Sun Nov 9 21:28:06 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 930D116A4CE; Sun, 9 Nov 2003 21:28:06 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03E2C43FAF; Sun, 9 Nov 2003 21:28:06 -0800 (PST) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hAA5S5XJ078182; Sun, 9 Nov 2003 21:28:05 -0800 (PST) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hAA5S5fK078181; Sun, 9 Nov 2003 21:28:05 -0800 (PST) (envelope-from marcel) Message-Id: <200311100528.hAA5S5fK078181@repoman.freebsd.org> From: Marcel Moolenaar Date: Sun, 9 Nov 2003 21:28:05 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/ia64/ia64 machdep.c 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: Mon, 10 Nov 2003 05:28:06 -0000 marcel 2003/11/09 21:28:05 PST FreeBSD src repository Modified files: sys/ia64/ia64 machdep.c Log: In get_mcontext(), do not update bspstore and ndirty in the trapframe. Only update them in the newly created context to reflect the state after copying the dirty registers onto the user stack. If we were to update the trapframe, we lose the state at entry into the kernel. We may need that after we create the context, such as for KSE upcalls. We have to update the trapframe after writing the dirty registers to the user stack for signal delivery to work. But this is best done in sendsig() itself where it applies, not in get_mcontext() where it's done unconditionally. Revision Changes Path 1.166 +9 -5 src/sys/ia64/ia64/machdep.c