From owner-svn-src-stable-7@FreeBSD.ORG Sun Sep 20 00:51:49 2009 Return-Path: Delivered-To: svn-src-stable-7@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2341D1065670; Sun, 20 Sep 2009 00:51:49 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 10E868FC15; Sun, 20 Sep 2009 00:51:49 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n8K0pmvM039594; Sun, 20 Sep 2009 00:51:48 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n8K0pmG6039592; Sun, 20 Sep 2009 00:51:48 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <200909200051.n8K0pmG6039592@svn.freebsd.org> From: Marius Strobl Date: Sun, 20 Sep 2009 00:51:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r197336 - in stable/7/sys: . contrib/pf sparc64/sparc64 X-BeenThere: svn-src-stable-7@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 7-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Sep 2009 00:51:49 -0000 Author: marius Date: Sun Sep 20 00:51:48 2009 New Revision: 197336 URL: http://svn.freebsd.org/changeset/base/197336 Log: MFC: r191981 Just like in cpu_halt(), use cpu_shutdown() rather than ofw_exit() directly in cpu_reset() in order to idle the APs before exiting the kernel and letting the BSP enter the firmware so that processes like init(8) which still might be running on an AP at that point don't cause a panic there when it crashes due to the fact it no longer can be supported by the kernel. Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/sparc64/sparc64/vm_machdep.c Modified: stable/7/sys/sparc64/sparc64/vm_machdep.c ============================================================================== --- stable/7/sys/sparc64/sparc64/vm_machdep.c Sun Sep 20 00:15:52 2009 (r197335) +++ stable/7/sys/sparc64/sparc64/vm_machdep.c Sun Sep 20 00:51:48 2009 (r197336) @@ -343,7 +343,7 @@ cpu_reset(void) bspec[sizeof(bspec) - 1] = '\0'; } - openfirmware_exit(&args); + cpu_shutdown(&args); } /*