aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2009-05-10 20:41:52 +0000
committerMarius Strobl <marius@FreeBSD.org>2009-05-10 20:41:52 +0000
commit1eb3155347487cc788902a452c2d3e0ebf83fd15 (patch)
treeb56a5bf48e1b86dab4edd3391e43be0ea64084f4 /sys/sparc64
parentc68975278359ad67abfa826bc55f5810fca12d46 (diff)
downloadsrc-1eb3155347487cc788902a452c2d3e0ebf83fd15.tar.gz
src-1eb3155347487cc788902a452c2d3e0ebf83fd15.zip
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
Notes
Notes: svn path=/head/; revision=191981
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/vm_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c
index a5b7629c5656..76521a6bca36 100644
--- a/sys/sparc64/sparc64/vm_machdep.c
+++ b/sys/sparc64/sparc64/vm_machdep.c
@@ -342,7 +342,7 @@ cpu_reset(void)
bspec[sizeof(bspec) - 1] = '\0';
}
- ofw_exit(&args);
+ cpu_shutdown(&args);
}
/*