aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2011-07-18 18:29:39 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2011-07-18 18:29:39 +0000
commit6e8ea94f7e2b72f0a01c490dda86e993a92144bc (patch)
treec0a58cf81515013d3f836464592b6499320b9bf7 /sys
parentf9f779bb8c4d68a17d04ca71ea9c5ec7daaf8009 (diff)
Notes
Diffstat (limited to 'sys')
-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 bb9539e04e59..c2132bc074a4 100644
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -822,7 +822,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;