summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2019-04-01 07:00:53 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2019-04-01 07:00:53 +0000
commit3e0f9ec2650b32f581c7589e8e950b36c494c1b5 (patch)
tree09b3436602bf1901aa426b1226acf7b67d69035d /sys/arch/sparc64
parent52d8a07269c95d9dbed740844a748788d1dfdb23 (diff)
fast track ddb> reboot command to skip anything which might panic again.
ok deraadt
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index 9deec63d527..ab10aedb977 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.190 2018/07/10 04:19:59 guenther Exp $ */
+/* $OpenBSD: machdep.c,v 1.191 2019/04/01 07:00:52 tedu Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -596,6 +596,9 @@ boot(int howto)
int i;
static char str[128];
+ if ((howto & RB_RESET) != 0)
+ goto doreset;
+
if (cold) {
if ((howto & RB_USERREQ) == 0)
howto |= RB_HALT;
@@ -650,6 +653,7 @@ haltsys:
panic("PROM exit failed");
}
+doreset:
printf("rebooting\n\n");
#if 0
if (user_boot_string && *user_boot_string) {