Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/cobalt/cobalt Fix RB_KDB by calling the debugger en...



details:   https://anonhg.NetBSD.org/src/rev/f4feac5501af
branches:  trunk
changeset: 346680:f4feac5501af
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Jul 27 11:13:14 2016 +0000

description:
Fix RB_KDB by calling the debugger entry points after pmap_bootstrap, etc

diffstat:

 sys/arch/cobalt/cobalt/machdep.c |  23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diffs (51 lines):

diff -r 5798f45d9f98 -r f4feac5501af sys/arch/cobalt/cobalt/machdep.c
--- a/sys/arch/cobalt/cobalt/machdep.c  Wed Jul 27 09:57:26 2016 +0000
+++ b/sys/arch/cobalt/cobalt/machdep.c  Wed Jul 27 11:13:14 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.117 2015/06/29 17:52:53 matt Exp $       */
+/*     $NetBSD: machdep.c,v 1.118 2016/07/27 11:13:14 skrll Exp $      */
 
 /*-
  * Copyright (c) 2006 Izumi Tsutsui.  All rights reserved.
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.117 2015/06/29 17:52:53 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.118 2016/07/27 11:13:14 skrll Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -274,15 +274,6 @@
                ksyms_addsyms_elf(esym - ssym, ssym, esym);
 #endif
        KASSERT(&lwp0 == curlwp);
-#ifdef DDB
-       if (boothowto & RB_KDB)
-               Debugger();
-#endif
-#ifdef KGDB
-       if (boothowto & RB_KDB)
-               kgdb_connect(0);
-#endif
-
        /*
         * Load the rest of the available pages into the VM system.
         */
@@ -302,6 +293,16 @@
         * Allocate space for proc0's USPACE.
         */
        mips_init_lwp0_uarea();
+
+#ifdef DDB
+       if (boothowto & RB_KDB)
+               Debugger();
+#endif
+#ifdef KGDB
+       if (boothowto & RB_KDB)
+               kgdb_connect(0);
+#endif
+
 }
 
 /*



Home | Main Index | Thread Index | Old Index