mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
5f8a9ae4a9
commit
a27d4bdc9f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue