PERFORCE change 1189575 for review
John Baldwin
jhb at FreeBSD.org
Sat Dec 28 19:40:50 UTC 2013
http://p4web.freebsd.org/@@1189575?ac=10
Change 1189575 by jhb at jhb_pippin on 2013/12/28 19:40:11
Reapply this diff.
Affected files ...
.. //depot/projects/multipass/sys/x86/x86/legacy.c#2 edit
Differences ...
==== //depot/projects/multipass/sys/x86/x86/legacy.c#2 (text+ko) ====
@@ -108,7 +108,8 @@
};
static devclass_t legacy_devclass;
-DRIVER_MODULE(legacy, nexus, legacy_driver, legacy_devclass, 0, 0);
+EARLY_DRIVER_MODULE(legacy, nexus, legacy_driver, legacy_devclass, 0, 0,
+ BUS_PASS_BUS);
static int
legacy_probe(device_t dev)
@@ -296,7 +297,7 @@
1, /* no softc */
};
static devclass_t cpu_devclass;
-DRIVER_MODULE(cpu, legacy, cpu_driver, cpu_devclass, 0, 0);
+EARLY_DRIVER_MODULE(cpu, legacy, cpu_driver, cpu_devclass, 0, 0, BUS_PASS_CPU);
static void
cpu_identify(driver_t *driver, device_t parent)
@@ -304,13 +305,8 @@
device_t child;
int i;
- /*
- * Attach a cpuX device for each CPU. We use an order of 150
- * so that these devices are attached after the Host-PCI
- * bridges (which are added at order 100).
- */
CPU_FOREACH(i) {
- child = BUS_ADD_CHILD(parent, 150, "cpu", i);
+ child = BUS_ADD_CHILD(parent, 0, "cpu", i);
if (child == NULL)
panic("legacy_attach cpu");
}
More information about the p4-projects
mailing list