From bd77aaf9800105fcdbcc51b7c6aeaf421db7f892 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 9 Jun 2003 18:08:46 +0000 Subject: [PATCH] When we re-route a PCI interrupt, write the new IRQ value into the intline register. Reviewed by: imp --- sys/dev/pci/pci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index cf316cc5813..f50ab27131c 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -806,9 +806,10 @@ pci_add_resources(device_t pcib, device_t dev) * have. */ irq = PCIB_ROUTE_INTERRUPT(pcib, dev, cfg->intpin); - if (PCI_INTERRUPT_VALID(irq)) + if (PCI_INTERRUPT_VALID(irq)) { + pci_write_config(dev, PCIR_INTLINE, irq, 1); cfg->intline = irq; - else + } else #endif irq = cfg->intline; resource_list_add(rl, SYS_RES_IRQ, 0, irq, irq, 1);