Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Sep 2009 00:51:48 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r197336 - in stable/7/sys: . contrib/pf sparc64/sparc64
Message-ID:  <200909200051.n8K0pmG6039592@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909200051.n8K0pmG6039592>