Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 May 2009 20:41:52 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191981 - head/sys/sparc64/sparc64
Message-ID:  <200905102041.n4AKfqRN068445@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marius
Date: Sun May 10 20:41:52 2009
New Revision: 191981
URL: http://svn.freebsd.org/changeset/base/191981

Log:
  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.
  
  MFC after:	3 days

Modified:
  head/sys/sparc64/sparc64/vm_machdep.c

Modified: head/sys/sparc64/sparc64/vm_machdep.c
==============================================================================
--- head/sys/sparc64/sparc64/vm_machdep.c	Sun May 10 20:22:41 2009	(r191980)
+++ head/sys/sparc64/sparc64/vm_machdep.c	Sun May 10 20:41:52 2009	(r191981)
@@ -342,7 +342,7 @@ cpu_reset(void)
 		bspec[sizeof(bspec) - 1] = '\0';
 	}
 
-	ofw_exit(&args);
+	cpu_shutdown(&args);
 }
 
 /*



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