From a212d6f9d017190f86d251533661f757db665224 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Thu, 14 Apr 2016 10:42:37 -0400 Subject: [PATCH] >= in reserve method to catch that last chunk of frames --- src/memory/FrameAllocator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory/FrameAllocator.cc b/src/memory/FrameAllocator.cc index 9d1111b..b21788d 100644 --- a/src/memory/FrameAllocator.cc +++ b/src/memory/FrameAllocator.cc @@ -102,7 +102,7 @@ FrameAllocator::reserveRange(u32 start, } // Fill in entries in `pagesPerBitmap` sized chunks. - while ((endPage - page) > pagesPerBitmap) { + while ((endPage - page) >= pagesPerBitmap) { mBitmap[bitmapIndex++].fill(); page += pagesPerBitmap; }