Module Name:    src
Committed By:   hans
Date:           Sun Mar  9 18:27:39 UTC 2025

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

Log Message:
vax: call config_init() before initializing the console

With console on dz(4) at vsbus, dzcnpollc() calls vsbus_setmask() to
mask interrupts, which in turn calls device_lookup_private() to find
the vsbus softc. When booting into ddb(4) with a DIAGNOSTIC kernel,
this panics as the autoconf alldevs_lock hasn't been initialized yet.


To generate a diff of this commit:
cvs rdiff -u -r1.200 -r1.201 src/sys/arch/vax/vax/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/vax/vax/machdep.c
diff -u src/sys/arch/vax/vax/machdep.c:1.200 src/sys/arch/vax/vax/machdep.c:1.201
--- src/sys/arch/vax/vax/machdep.c:1.200	Fri May 17 21:37:07 2024
+++ src/sys/arch/vax/vax/machdep.c	Sun Mar  9 18:27:39 2025
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.200 2024/05/17 21:37:07 thorpej Exp $	 */
+/* $NetBSD: machdep.c,v 1.201 2025/03/09 18:27:39 hans Exp $	 */
 
 /*
  * Copyright (c) 1982, 1986, 1990 The Regents of the University of California.
@@ -83,7 +83,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.200 2024/05/17 21:37:07 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.201 2025/03/09 18:27:39 hans Exp $");
 
 #include "opt_ddb.h"
 #include "opt_compat_netbsd.h"
@@ -319,6 +319,7 @@ consinit(void)
 #ifdef DEBUG
 	iospace_inited = 1;
 #endif
+	config_init();
 	cninit();
 #if NKSYMS || defined(DDB) || defined(MODULAR)
 	if (symtab_start != NULL && symtab_nsyms != 0 && symtab_end != NULL) {

Reply via email to