svn commit: r191981 - head/sys/sparc64/sparc64
Marius Strobl
marius at FreeBSD.org
Sun May 10 20:41:54 UTC 2009
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);
}
/*
More information about the svn-src-all
mailing list