summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2001-06-03 09:45:40 +0000
committerpeter <peter@FreeBSD.org>2001-06-03 09:45:40 +0000
commitf1767c79aee201f2616b72d7964bab85f4c1012f (patch)
tree9bc6b1f0a75f690ffd0b3dbac9629bfbe402849d
parenteaa7d6fe18902356cefd477140607552e8a1e5a7 (diff)
downloadFreeBSD-src-f1767c79aee201f2616b72d7964bab85f4c1012f.zip
FreeBSD-src-f1767c79aee201f2616b72d7964bab85f4c1012f.tar.gz
Fix reversed arguments to pci_write_config()
PR: kern/9408 Submitted by: Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
-rw-r--r--sys/dev/pci/fixup_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/fixup_pci.c b/sys/dev/pci/fixup_pci.c
index d8ef603..df487b2 100644
--- a/sys/dev/pci/fixup_pci.c
+++ b/sys/dev/pci/fixup_pci.c
@@ -88,13 +88,13 @@ fixwsc_natoma(device_t dev)
if (pmccfg & 0x8000) {
printf("Correcting Natoma config for SMP\n");
pmccfg &= ~0x8000;
- pci_write_config(dev, 0x50, 2, pmccfg);
+ pci_write_config(dev, 0x50, pmccfg, 2);
}
#else
if ((pmccfg & 0x8000) == 0) {
printf("Correcting Natoma config for non-SMP\n");
pmccfg |= 0x8000;
- pci_write_config(dev, 0x50, 2, pmccfg);
+ pci_write_config(dev, 0x50, pmccfg, 2);
}
#endif
}
OpenPOWER on IntegriCloud