Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Dec 2013 19:40:49 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 1189575 for review
Message-ID:  <201312281940.rBSJengw048431@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@1189575?ac=10

Change 1189575 by jhb@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");
 	}



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