From cdc95e1bb810a36cd59c3ec47c721f817246253e Mon Sep 17 00:00:00 2001 From: Bernd Walter Date: Thu, 22 May 2003 17:45:26 +0000 Subject: [PATCH] Calculate routed interrupts using the slot number from the device and not that of the bridge. Approved by: re (jhb) --- sys/dev/pci/pci_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c index 71d814caf6b..cc113ab2c48 100644 --- a/sys/dev/pci/pci_pci.c +++ b/sys/dev/pci/pci_pci.c @@ -495,7 +495,7 @@ pcib_route_interrupt(device_t pcib, device_t dev, int pin) * * parent_intpin = (device + child_intpin) % 4 */ - parent_intpin = (pci_get_slot(pcib) + (pin - 1)) % 4; + parent_intpin = (pci_get_slot(dev) + (pin - 1)) % 4; /* * Our parent is a PCI bus. Its parent must export the pcib interface