summaryrefslogtreecommitdiff
path: root/sys/arch/sgi
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/sgi
parent52d8a07269c95d9dbed740844a748788d1dfdb23 (diff)
fast track ddb> reboot command to skip anything which might panic again.
ok deraadt
Diffstat (limited to 'sys/arch/sgi')
-rw-r--r--sys/arch/sgi/sgi/machdep.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c
index 272883332c8..1efaad2d35d 100644
--- a/sys/arch/sgi/sgi/machdep.c
+++ b/sys/arch/sgi/sgi/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.159 2019/03/17 05:06:36 visa Exp $ */
+/* $OpenBSD: machdep.c,v 1.160 2019/04/01 07:00:52 tedu Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -822,6 +822,9 @@ int waittime = -1;
__dead void
boot(int howto)
{
+ if ((howto & RB_RESET) != 0)
+ goto doreset;
+
if (curproc)
savectx(curproc->p_addr, 0);
@@ -859,8 +862,10 @@ haltsys:
printf("System Power Down.\n");
else
printf("System Halt.\n");
- } else
+ } else {
+doreset:
printf("System restart.\n");
+ }
delay(1000000);
md_halt(howto);