summaryrefslogtreecommitdiff
path: root/sys/dev/pci/pci.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-13 21:47:50 -0400
committerIan Moffett <ian@osmora.org>2024-04-13 21:48:17 -0400
commit5bd702ec90d57bd131e90bdc97845b3e11b9c42b (patch)
tree3308f4f21442beab8efb9101e2d039890cf1abff /sys/dev/pci/pci.c
parentff974bd5d1883fd5f48ff11372e9760d8d05a141 (diff)
kernel: pci: Fix BAR assignment
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev/pci/pci.c')
-rw-r--r--sys/dev/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
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;
}