Source-Changes-HG archive

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

[src/trunk]: src/sys/ddb In the "reboot" and (badly misnamed) "sync" commands...



details:   https://anonhg.NetBSD.org/src/rev/f7ea952f13f7
branches:  trunk
changeset: 487642:f7ea952f13f7
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Sat Jun 10 16:31:42 2000 +0000

description:
In the "reboot" and (badly misnamed) "sync" commands, clear db_recover
before calling cpu_reboot() (which never returns) so we can debug
faults occurring in cpu_reboot().

diffstat:

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

diffs (35 lines):

diff -r b36aa2691213 -r f7ea952f13f7 sys/ddb/db_command.c
--- a/sys/ddb/db_command.c      Sat Jun 10 15:22:51 2000 +0000
+++ b/sys/ddb/db_command.c      Sat Jun 10 16:31:42 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_command.c,v 1.46 2000/06/08 21:06:46 jhawk Exp $    */
+/*     $NetBSD: db_command.c,v 1.47 2000/06/10 16:31:42 sommerfeld Exp $       */
 
 /* 
  * Mach Operating System
@@ -647,6 +647,12 @@
            db_error("?\n");
            /*NOTREACHED*/
        }
+       /*
+        * We are leaving DDB, never to return upward.
+        * Clear db_recover so that we can debug faults in functions
+        * called from cpu_reboot.
+        */
+       db_recover = 0;
        cpu_reboot((int)bootflags, NULL);
 }
 
@@ -704,6 +710,11 @@
        db_expr_t       count;
        char *          modif;
 {
-
+       /*
+        * We are leaving DDB, never to return upward.
+        * Clear db_recover so that we can debug faults in functions
+        * called from cpu_reboot.
+        */
+       db_recover = 0;
        cpu_reboot(RB_DUMP, NULL);
 }



Home | Main Index | Thread Index | Old Index