Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Jul 2007 19:14:32 GMT
From:      Maxim Zhuravlev <thioretic@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 124099 for review
Message-ID:  <200707251914.l6PJEWr2071199@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124099

Change 124099 by thioretic@thioretic on 2007/07/25 19:14:24

	Need to attach root_bus to set things up.

Affected files ...

.. //depot/projects/soc2007/thioretic_gidl/kern/subr_bus.c#22 edit

Differences ...

==== //depot/projects/soc2007/thioretic_gidl/kern/subr_bus.c#22 (text+ko) ====

@@ -4649,8 +4649,14 @@
 	return (-1);
 }
 
+static int
+root_attach(device_t dev){
+	return (0);
+}
+
 static kobj_method_t root_methods[] = {
 	/* Device interface */
+	KOBJMETHOD(device_attach,	root_attach),
 	KOBJMETHOD(device_shutdown,	bus_generic_shutdown),
 	KOBJMETHOD(device_suspend,	bus_generic_suspend),
 	KOBJMETHOD(device_resume,	root_resume),
@@ -4684,7 +4690,7 @@
 		root_bus = make_device(NULL, "root", 0);
 		root_bus->desc = "System root bus";
 		device_set_driver(root_bus, root_driver);
-		root_bus->state = DS_ATTACHED;
+		device_attach(root_bus);
 		root_devclass = devclass_find_internal("root", 0, FALSE, FALSE);
 		devinit();
 		return (0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707251914.l6PJEWr2071199>