Hi, On 22.11.2016 00:54, Alexander Senier wrote: > gets called for 0:2:0. The only place I see where assign_device() is used in > the code, is in config_write() when writing PCI_CMD_DMA to > PCI_CMD_REG. However, when doing such a config_write() manually in my > component, I get an Out_of_metadate exception. How can I assign the PCI > device to my drivers device_pd?
by calling config_write() successfully ;-). You have to handle the Out_of_metadata exception and then the assignment will succeed. Just look into the other drivers as this is handled there, e.g. https://github.com/genodelabs/genode/blob/master/repos/os/src/drivers/ahci/spec/x86/platform.cc#L101 Cheers, Alex. -- Alexander Boettcher Genode Labs http://www.genode-labs.com · http://genode.org Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth ------------------------------------------------------------------------------ _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main