svn commit: r197336 - in stable/7/sys: . contrib/pf sparc64/sparc64

Marius Strobl marius at FreeBSD.org
Sun Sep 20 00:51:49 UTC 2009


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);
 }
 
 /*


More information about the svn-src-all mailing list