Module Name:    src
Committed By:   skrll
Date:           Wed Jul 27 11:13:14 UTC 2016

Modified Files:
        src/sys/arch/cobalt/cobalt: machdep.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.117 -r1.118 src/sys/arch/cobalt/cobalt/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/cobalt/cobalt/machdep.c
diff -u src/sys/arch/cobalt/cobalt/machdep.c:1.117 src/sys/arch/cobalt/cobalt/machdep.c:1.118
--- src/sys/arch/cobalt/cobalt/machdep.c:1.117	Mon Jun 29 17:52:53 2015
+++ src/sys/arch/cobalt/cobalt/machdep.c	Wed Jul 27 11:13:14 2016
@@ -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 @@ mach_init(int32_t memsize32, u_int bim, 
 		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 @@ mach_init(int32_t memsize32, u_int bim, 
 	 * 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
+
 }
 
 /*

Reply via email to