1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Fix reversed arguments to pci_write_config()

PR:		kern/9408
Submitted by:	Philipp Mergenthaler <philipp.mergenthaler@stud.uni-karlsruhe.de>
This commit is contained in:
Peter Wemm 2001-06-03 09:45:40 +00:00
parent 87826386e0
commit eee598d8f3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77649

View File

@ -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
}