actually uses config_* functions for console attachment. Document
config_init should not call malloc as the move was over the mem-init
function calls too.
-/* $OpenBSD: init_main.c,v 1.7 1996/05/06 09:56:20 niklas Exp $ */
+/* $OpenBSD: init_main.c,v 1.8 1996/05/07 15:23:35 niklas Exp $ */
/* $NetBSD: init_main.c,v 1.84 1996/04/22 01:38:12 christos Exp $ */
/*
*/
p = &proc0;
curproc = p;
+
/*
* Attempt to find console and initialize
* in case of early panic or other messages.
*/
+ config_init(); /* init autoconfiguration data structures */
consinit();
printf(copyright);
vm_mem_init();
kmeminit();
disk_init(); /* must come before autoconfiguration */
- config_init(); /* init autoconfiguration data structures */
cpu_startup();
/*
-/* $OpenBSD: subr_autoconf.c,v 1.5 1996/04/29 14:17:45 hvozda Exp $ */
+/* $OpenBSD: subr_autoconf.c,v 1.6 1996/05/07 15:23:36 niklas Exp $ */
/* $NetBSD: subr_autoconf.c,v 1.21 1996/04/04 06:06:18 cgd Exp $ */
/*
struct evcntlist allevents; /* list of all event counters */
/*
- * Initialize autoconfiguration data structures.
+ * Initialize autoconfiguration data structures. This occurs before console
+ * initialization as that might require use of this subsystem. Furthermore
+ * this means that malloc et al. isn't yet available.
*/
void
config_init()