[tyndur-devel] [PATCH] cdi: Fix für das Einlesen von Ressourcen
Kevin Wolf ·
! cdi: Der pci-Service gibt nicht nur Speicher- und I/O-Port-Bereich als Ressourcen zurück, sondern auch IRQs. Wenn man die in die BAR-Liste einträgt ist das doof und gibt manchmal rot. Signed-off-by: Kevin Wolf <kevin at tyndur.org> --- src/modules/cdi/lib/pci.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/modules/cdi/lib/pci.c b/src/modules/cdi/lib/pci.c index 542fa79..f87b8ac 100644 --- a/src/modules/cdi/lib/pci.c +++ b/src/modules/cdi/lib/pci.c @@ -83,6 +83,13 @@ static struct cdi_pci_device* read_pci_device(uint8_t* data, size_t size) case PCI_RESOURCE_PORT: cdi_res->type = CDI_PCI_IOPORTS; break; + + case PCI_RESOURCE_IRQ: + continue; + + default: + *(int*)0x0 = 42; + break; } cdi_list_push(cdi_device->resources, cdi_res); -- 1.6.0.2