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/octeon | |
parent | 52d8a07269c95d9dbed740844a748788d1dfdb23 (diff) |
fast track ddb> reboot command to skip anything which might panic again.
ok deraadt
Diffstat (limited to 'sys/arch/octeon')
-rw-r--r-- | sys/arch/octeon/octeon/machdep.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/octeon/octeon/machdep.c b/sys/arch/octeon/octeon/machdep.c index b2258c9b1a8..2715a82630a 100644 --- a/sys/arch/octeon/octeon/machdep.c +++ b/sys/arch/octeon/octeon/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.108 2018/12/18 14:24:02 visa Exp $ */ +/* $OpenBSD: machdep.c,v 1.109 2019/04/01 07:00:52 tedu Exp $ */ /* * Copyright (c) 2009, 2010 Miodrag Vallat. @@ -764,6 +764,9 @@ int waittime = -1; __dead void boot(int howto) { + if ((howto & RB_RESET) != 0) + goto doreset; + if (curproc) savectx(curproc->p_addr, 0); @@ -803,6 +806,7 @@ haltsys: else printf("System Halt.\n"); } else { +doreset: printf("System restart.\n"); (void)disableintr(); tlb_set_wired(0); |