In case we have many continous regions without gaps we have to make soure that

we collapse them into one region. The previous version missed to go back one
step and do it again.
This commit is contained in:
Andreas Tobler 2013-12-05 21:25:56 +00:00
parent 1aa997ff6a
commit 6df3000ccd

View File

@ -148,6 +148,7 @@ mem_regions(struct mem_region **phys, int *physsz, struct mem_region **avail,
memcpy(&aregions[i], &aregions[i+1],
(naregions - i - 1)*sizeof(*aregions));
naregions--;
i--;
}
}
}