Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ddb set panicstr to "reboot forced via kernel debugger" ...



details:   https://anonhg.NetBSD.org/src/rev/c015667533ed
branches:  trunk
changeset: 771158:c015667533ed
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Nov 13 03:21:51 2011 +0000

description:
set panicstr to "reboot forced via kernel debugger" when rebooting
from ddb, similar to how sync from ddb works.

this avoids various asserts and other issues during ddb reboot.

diffstat:

 sys/ddb/db_command.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r d42ecd7f29b5 -r c015667533ed sys/ddb/db_command.c
--- a/sys/ddb/db_command.c      Sun Nov 13 02:10:40 2011 +0000
+++ b/sys/ddb/db_command.c      Sun Nov 13 03:21:51 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_command.c,v 1.136 2011/05/17 04:18:06 mrg Exp $     */
+/*     $NetBSD: db_command.c,v 1.137 2011/11/13 03:21:51 mrg Exp $     */
 
 /*
  * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.136 2011/05/17 04:18:06 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.137 2011/11/13 03:21:51 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_aio.h"
@@ -1304,6 +1304,7 @@
         * called from cpu_reboot.
         */
        db_recover = 0;
+       panicstr = "reboot forced via kernel debugger";
        cpu_reboot((int)bootflags, NULL);
 #else  /* _KERNEL */
        db_printf("This command can only be used in-kernel.\n");



Home | Main Index | Thread Index | Old Index