PERFORCE change 124099 for review
Maxim Zhuravlev
thioretic at FreeBSD.org
Wed Jul 25 19:14:33 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=124099
Change 124099 by thioretic at 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);
More information about the p4-projects
mailing list