summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-05-10 20:41:52 +0000
committermarius <marius@FreeBSD.org>2009-05-10 20:41:52 +0000
commit5553a0b3b834f3ce98522716ea57ed0f8bc028a1 (patch)
treeb56a5bf48e1b86dab4edd3391e43be0ea64084f4 /sys/sparc64
parent3ccda1e48de5b4532db9462eecae03ee12ce0ac6 (diff)
downloadFreeBSD-src-5553a0b3b834f3ce98522716ea57ed0f8bc028a1.zip
FreeBSD-src-5553a0b3b834f3ce98522716ea57ed0f8bc028a1.tar.gz
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
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 a5b7629..76521a6 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);
}
/*
OpenPOWER on IntegriCloud