summaryrefslogtreecommitdiff
path: root/sys/kern/subr_autoconf.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-05-07 15:23:37 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-05-07 15:23:37 +0000
commitdc1de5c70a7188a19a185860862d94e49e27bead (patch)
tree85d964d678f709cfe6b230225f0843ea6103e474 /sys/kern/subr_autoconf.c
parent394ec342a8cb33d65a80f235deb61cc14578d2b7 (diff)
Make sure config_init gets called before consinit, as at least one port
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.
Diffstat (limited to 'sys/kern/subr_autoconf.c')
-rw-r--r--sys/kern/subr_autoconf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c
index ab73c7d2416..f72a1c5f364 100644
--- a/sys/kern/subr_autoconf.c
+++ b/sys/kern/subr_autoconf.c
@@ -1,4 +1,4 @@
-/* $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 $ */
/*
@@ -91,7 +91,9 @@ struct devicelist alldevs; /* list of all devices */
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()