summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2005-05-29 23:44:22 +0000
committermarcel <marcel@FreeBSD.org>2005-05-29 23:44:22 +0000
commitbb14b518f7ca82372ae131071e642c56805f78c4 (patch)
treec56428a42c205168e483559ee15b7dedaeeef31d /sys/powerpc
parentbdc0663fe016210c08ae3412968ec0f0ce9321b3 (diff)
downloadFreeBSD-src-bb14b518f7ca82372ae131071e642c56805f78c4.zip
FreeBSD-src-bb14b518f7ca82372ae131071e642c56805f78c4.tar.gz
Create nexus in configure_first() instead of in configure(). This
makes sure that sysinit tasks that run after configure_first(), but before configure() have a nexus to hang devices off.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/powerpc/autoconf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/powerpc/powerpc/autoconf.c b/sys/powerpc/powerpc/autoconf.c
index faf31ea..aa21ddc 100644
--- a/sys/powerpc/powerpc/autoconf.c
+++ b/sys/powerpc/powerpc/autoconf.c
@@ -51,12 +51,13 @@ SYSINIT(configure3, SI_SUB_CONFIGURE, SI_ORDER_ANY, configure_final, NULL);
static void
configure_first(void *dummy)
{
+
+ nexusdev = device_add_child(root_bus, "nexus", 0);
}
static void
configure(void *dummy)
{
- nexusdev = device_add_child(root_bus, "nexus", 0);
root_bus_configure();
}
OpenPOWER on IntegriCloud