From 5bd702ec90d57bd131e90bdc97845b3e11b9c42b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 13 Apr 2024 21:47:50 -0400 Subject: kernel: pci: Fix BAR assignment Signed-off-by: Ian Moffett --- sys/dev/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index c4383e6..d9ab5d6 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -142,7 +142,7 @@ pci_set_device_info(struct pci_device *dev) dev->bar[2] = pci_readl(dev, 0x18); dev->bar[3] = pci_readl(dev, 0x1C); dev->bar[4] = pci_readl(dev, 0x20); - dev->bar[6] = pci_readl(dev, 0x24); + dev->bar[5] = pci_readl(dev, 0x24); dev->irq_line = pci_readl(dev, 0x3C) & 0xFF; } -- cgit v1.2.3