summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2011-07-12 13:28:39 +0000
committerjhb <jhb@FreeBSD.org>2011-07-12 13:28:39 +0000
commit5a3e36fceafe556ee13e77a5b89a3594317ddaa0 (patch)
treec64ae36b774c65c803eb246651a9d2a7b6761ffd /sys/dev
parente11333ee9faef6be17dd23c1f39468740356d3c1 (diff)
downloadFreeBSD-src-5a3e36fceafe556ee13e77a5b89a3594317ddaa0.zip
FreeBSD-src-5a3e36fceafe556ee13e77a5b89a3594317ddaa0.tar.gz
Properly align the end of a candidate back region based on the window's
granularity when growing a PCI-PCI window up. Tested by: dougb MFC after: 3 days
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pci_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
index 93bbf3a..5cbfb4d 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -954,7 +954,7 @@ pcib_grow_window(struct pcib_softc *sc, struct pcib_window *w, int type,
if (bootverbose)
printf("\tback candidate range: %#lx-%#lx\n",
start_free, back);
- back = roundup2(back + 1, w->step) - 1;
+ back = roundup2(back + 1, 1ul << w->step) - 1;
back -= rman_get_end(w->res);
} else
back = 0;
OpenPOWER on IntegriCloud