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:
parent
87826386e0
commit
eee598d8f3
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user