Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbarm/evbarm implement boot -d for arm64.
details: https://anonhg.NetBSD.org/src/rev/64b20e97d934
branches: trunk
changeset: 957991:64b20e97d934
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Dec 19 21:54:00 2020 +0000
description:
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.
diffstat:
sys/arch/evbarm/evbarm/autoconf.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 445752683cd1 -r 64b20e97d934 sys/arch/evbarm/evbarm/autoconf.c
--- a/sys/arch/evbarm/evbarm/autoconf.c Sat Dec 19 21:48:04 2020 +0000
+++ b/sys/arch/evbarm/evbarm/autoconf.c Sat Dec 19 21:54:00 2020 +0000
@@ -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 @@
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++) {
Home |
Main Index |
Thread Index |
Old Index