boot(9), reboot(9): Migrate MD callers of boot(9) to reboot(9)
authoruebayasi <uebayasi@openbsd.org>
Sat, 12 Jul 2014 14:12:44 +0000 (14:12 +0000)
committeruebayasi <uebayasi@openbsd.org>
Sat, 12 Jul 2014 14:12:44 +0000 (14:12 +0000)
commit818c7e6d477e10473dacb17abc219d649817739b
treeb875a96ddc43a8f353ebd1e67f2e61e78e55ff35
parent2a0f4e8a5527f7b98ca7d12500207888e0560a5a
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@
sys/arch/hppa/dev/power.c
sys/arch/hppa/hppa/machdep.c
sys/arch/hppa64/dev/power.c
sys/arch/hppa64/hppa64/machdep.c
sys/arch/sgi/sgi/ip27_machdep.c
sys/arch/sgi/sgi/ip30_machdep.c
sys/arch/sparc64/dev/psycho.c
sys/arch/sparc64/dev/sbus.c