diff options
author | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2014-07-12 14:12:45 +0000 |
---|---|---|
committer | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2014-07-12 14:12:45 +0000 |
commit | 85faa97adb1c3e11247eaaece815da1d42c52088 (patch) | |
tree | 7e2c18664c9d6f94b90ea4f62a73b32bc893ba55 /sys/arch/hppa64 | |
parent | 38c10a03f7988583a3866a990118e940ca51027c (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/hppa64')
-rw-r--r-- | sys/arch/hppa64/dev/power.c | 4 | ||||
-rw-r--r-- | sys/arch/hppa64/hppa64/machdep.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hppa64/dev/power.c b/sys/arch/hppa64/dev/power.c index 0f06d7e7c5e..ee85fcf62a3 100644 --- a/sys/arch/hppa64/dev/power.c +++ b/sys/arch/hppa64/dev/power.c @@ -1,4 +1,4 @@ -/* $OpenBSD: power.c,v 1.2 2014/03/29 18:09:29 guenther Exp $ */ +/* $OpenBSD: power.c,v 1.3 2014/07/12 14:12:44 uebayasi Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -123,7 +123,7 @@ power_thread_reg(void *v) : "=&r" (r) : "r" (sc->sc_pwr_reg)); if (!(r & 1)) - boot(RB_POWERDOWN | RB_HALT); + reboot(RB_POWERDOWN | RB_HALT); tsleep(v, PWAIT, "regpower", 10); } diff --git a/sys/arch/hppa64/hppa64/machdep.c b/sys/arch/hppa64/hppa64/machdep.c index b74cc83b73e..d9158d892cd 100644 --- a/sys/arch/hppa64/hppa64/machdep.c +++ b/sys/arch/hppa64/hppa64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.64 2014/07/10 21:46:03 mpi Exp $ */ +/* $OpenBSD: machdep.c,v 1.65 2014/07/12 14:12:44 uebayasi Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -631,7 +631,7 @@ hpmc_dump(void) printf("HPMC\n"); cold = 0; - boot(RB_NOSYNC); + reboot(RB_NOSYNC); } int |