]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
HACK: xen/xenpv: Attach xenpv to ofwbus
authorJulien Grall <julien.grall@linaro.org>
Fri, 6 Jun 2014 15:47:36 +0000 (16:47 +0100)
committerJulien Grall <julien.grall@citrix.com>
Mon, 2 Nov 2015 11:46:55 +0000 (11:46 +0000)
ofwbus handle itself the device memory. If privcmd want to allocate memory
it will try in the wrong address space.

TODO: ofwbus should let the next handle resource management

sys/dev/xen/xenpv.c

index 1a2e989e123f79aead24dfbd81c2cb79cc1477ec..3a9fbf0602c0378a95db9b53eb94f2e588b49b03 100644 (file)
@@ -242,6 +242,7 @@ static driver_t xenpv_driver = {
 };
 
 DRIVER_MODULE(xenpv, nexus, xenpv_driver, xenpv_devclass, 0, 0);
+DRIVER_MODULE(xenpv, ofwbus, xenpv_driver, xenpv_devclass, 0, 0);
 
 struct resource *
 xenmem_alloc(device_t dev, int *res_id, size_t size)