summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/psycho.c
diff options
context:
space:
mode:
authorMasao Uebayashi <uebayasi@cvs.openbsd.org>2014-07-12 14:12:45 +0000
committerMasao Uebayashi <uebayasi@cvs.openbsd.org>2014-07-12 14:12:45 +0000
commit85faa97adb1c3e11247eaaece815da1d42c52088 (patch)
tree7e2c18664c9d6f94b90ea4f62a73b32bc893ba55 /sys/arch/sparc64/dev/psycho.c
parent38c10a03f7988583a3866a990118e940ca51027c (diff)
boot(9), reboot(9): Migrate MD callers of boot(9) to reboot(9)
I have found that some ports call boot(9) from machine-dependent code to reboot system. These should be changed to either: - Sending signal to init(8) to trigger it to shutdown system cleanly, like acpi(4) does, in cases where found problems don't prevent system from working immediately, or - Just doing panic(9) if the situation is severely broken. For now, just rewrite boot() to reboot(). Actual fixes follow. Discussed with & OK from kettenis@
Diffstat (limited to 'sys/arch/sparc64/dev/psycho.c')
-rw-r--r--sys/arch/sparc64/dev/psycho.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/psycho.c b/sys/arch/sparc64/dev/psycho.c
index 09e5bdef6cc..04292caa1d5 100644
--- a/sys/arch/sparc64/dev/psycho.c
+++ b/sys/arch/sparc64/dev/psycho.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: psycho.c,v 1.70 2014/01/24 09:36:23 kettenis Exp $ */
+/* $OpenBSD: psycho.c,v 1.71 2014/07/12 14:12:44 uebayasi Exp $ */
/* $NetBSD: psycho.c,v 1.39 2001/10/07 20:30:41 eeh Exp $ */
/*
@@ -839,7 +839,7 @@ psycho_powerfail(void *arg)
* We lost power. Try to shut down NOW.
*/
printf("Power Failure Detected: Shutting down NOW.\n");
- boot(RB_POWERDOWN|RB_HALT);
+ reboot(RB_POWERDOWN | RB_HALT);
return (1);
}