diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2019-04-01 07:00:53 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2019-04-01 07:00:53 +0000 |
commit | 3e0f9ec2650b32f581c7589e8e950b36c494c1b5 (patch) | |
tree | 09b3436602bf1901aa426b1226acf7b67d69035d /sys/arch/alpha | |
parent | 52d8a07269c95d9dbed740844a748788d1dfdb23 (diff) |
fast track ddb> reboot command to skip anything which might panic again.
ok deraadt
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/alpha/machdep.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/alpha/alpha/machdep.c b/sys/arch/alpha/alpha/machdep.c index c35aadda31d..3a9d701e868 100644 --- a/sys/arch/alpha/alpha/machdep.c +++ b/sys/arch/alpha/alpha/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.186 2018/07/10 04:19:59 guenther Exp $ */ +/* $OpenBSD: machdep.c,v 1.187 2019/04/01 07:00:51 tedu Exp $ */ /* $NetBSD: machdep.c,v 1.210 2000/06/01 17:12:38 thorpej Exp $ */ /*- @@ -964,6 +964,9 @@ boot(int howto) int i; #endif + if ((howto & RB_RESET) != 0) + goto doreset; + if (cold) { if ((howto & RB_USERREQ) == 0) howto |= RB_HALT; @@ -1033,6 +1036,7 @@ haltsys: (*platform.powerdown)(); printf("WARNING: powerdown failed!\n"); } +doreset: printf("%s\n\n", (howto & RB_HALT) != 0 ? "halted." : "rebooting..."); prom_halt((howto & RB_HALT) != 0); |