>= in reserve method to catch that last chunk of frames

This commit is contained in:
Eryn Wells 2016-04-14 10:42:37 -04:00
parent eb419802e2
commit a212d6f9d0

View file

@ -102,7 +102,7 @@ FrameAllocator::reserveRange(u32 start,
} }
// Fill in entries in `pagesPerBitmap` sized chunks. // Fill in entries in `pagesPerBitmap` sized chunks.
while ((endPage - page) > pagesPerBitmap) { while ((endPage - page) >= pagesPerBitmap) {
mBitmap[bitmapIndex++].fill(); mBitmap[bitmapIndex++].fill();
page += pagesPerBitmap; page += pagesPerBitmap;
} }