From owner-cvs-all@FreeBSD.ORG Thu Apr 14 18:30:47 2005 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 A1D9F16A4E0; Thu, 14 Apr 2005 18:30:47 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B99B543D4C; Thu, 14 Apr 2005 18:30:10 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j3EIUAZV084081; Thu, 14 Apr 2005 18:30:10 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j3EIUAXY084080; Thu, 14 Apr 2005 18:30:10 GMT (envelope-from jhb) Message-Id: <200504141830.j3EIUAXY084080@repoman.freebsd.org> From: John Baldwin Date: Thu, 14 Apr 2005 18:30:10 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sparc64/sparc64 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: Thu, 14 Apr 2005 18:30:47 -0000 jhb 2005-04-14 18:30:10 UTC FreeBSD src repository Modified files: sys/sparc64/sparc64 machdep.c Log: Close a race I introduced in the spinlock_* changes. We need to finish disabling interrupts before updating the saved pil in the thread. If we save the value first then it can be clobbered if an interrupt comes in and the interrupt handler tries to acquire a spin lock. Submitted by: marius Revision Changes Path 1.124 +3 -1 src/sys/sparc64/sparc64/machdep.c