diff options
| author | Warner Losh <imp@FreeBSD.org> | 2006-10-12 03:05:45 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2006-10-12 03:05:45 +0000 |
| commit | 413d6375d7a062878d612e3c234f6cb25db1dc6b (patch) | |
| tree | 1d2a860135a63435a176bc39628a97ea6c928277 | |
| parent | 42c3aae2eabea94d471f17ea4c54a202e66d234c (diff) | |
Notes
| -rw-r--r-- | sys/dev/pci/pci_pci.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c index d156235806d06..b883e2c86beef 100644 --- a/sys/dev/pci/pci_pci.c +++ b/sys/dev/pci/pci_pci.c @@ -148,10 +148,10 @@ pcib_attach_common(device_t dev) if (sc->command & PCIM_CMD_MEMEN) { sc->membase = PCI_PPBMEMBASE(0, pci_read_config(dev, PCIR_MEMBASE_1, 2)); sc->memlimit = PCI_PPBMEMLIMIT(0, pci_read_config(dev, PCIR_MEMLIMIT_1, 2)); - sc->pmembase = PCI_PPBMEMBASE((pci_addr_t)pci_read_config(dev, PCIR_PMBASEH_1, 4), - pci_read_config(dev, PCIR_PMBASEL_1, 2)); - sc->pmemlimit = PCI_PPBMEMLIMIT((pci_addr_t)pci_read_config(dev, PCIR_PMLIMITH_1, 4), - pci_read_config(dev, PCIR_PMLIMITL_1, 2)); + sc->pmembase = PCI_PPBMEMBASE(pci_read_config(dev, PCIR_PMBASEH_1, 4), + pci_read_config(dev, PCIR_PMBASEL_1, 2)); + sc->pmemlimit = PCI_PPBMEMLIMIT(pci_read_config(dev, PCIR_PMLIMITH_1, 4), + pci_read_config(dev, PCIR_PMLIMITL_1, 2)); } /* |
