Module Name:    src
Committed By:   mrg
Date:           Sat Dec 19 21:54:00 UTC 2020

Modified Files:
        src/sys/arch/evbarm/evbarm: autoconf.c

Log Message:
implement boot -d for arm64.

could be done at the end of initarm() except it hangs currently.
this gets you a db> prompt before devices are configured.

ok @skrll.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/evbarm/evbarm/autoconf.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/evbarm/evbarm/autoconf.c
diff -u src/sys/arch/evbarm/evbarm/autoconf.c:1.22 src/sys/arch/evbarm/evbarm/autoconf.c:1.23
--- src/sys/arch/evbarm/evbarm/autoconf.c:1.22	Mon Aug 27 09:52:16 2018
+++ src/sys/arch/evbarm/evbarm/autoconf.c	Sat Dec 19 21:54:00 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: autoconf.c,v 1.22 2018/08/27 09:52:16 jmcneill Exp $	*/
+/*	$NetBSD: autoconf.c,v 1.23 2020/12/19 21:54:00 mrg Exp $	*/
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,9 +30,10 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.22 2018/08/27 09:52:16 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.23 2020/12/19 21:54:00 mrg Exp $");
 
 #include "opt_md.h"
+#include "opt_ddb.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -171,6 +172,13 @@ cpu_configure(void)
 	struct mainbus_attach_args maa;
 	struct cfdata *cf;
 
+#ifdef DDB
+	if (boothowto & RB_KDB) {
+		printf("Entering DDB...\n");
+		cpu_Debugger();
+	}
+#endif
+
 	(void) splhigh();
 
 	for (cf = &cfdata[0]; cf->cf_name; cf++) {

Reply via email to