Reserved =
PAGE_ROUND_UP((MemorySizeInPages * sizeof(PHYSICAL_PAGE))) / PAGESIZE;
- ReservedGap =
- PAGE_ROUND_UP((131072 * sizeof(PHYSICAL_PAGE))) / PAGESIZE;
MmPageArray = (PHYSICAL_PAGE *)LastKernelAddress;
DPRINT("Reserved %d\n", Reserved);
-/* $Id: ppool.c,v 1.4 2001/12/20 03:56:09 dwelch Exp $
+/* $Id: ppool.c,v 1.5 2001/12/26 23:34:07 dwelch Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
ExAcquireFastMutex(&MmPagedPoolLock);
/*
- * Begin setting up the new free block's header.
+ * Begin setting up the newly freed block's header.
*/
FreeBlock->Size = UsedSize;
/*
- * Find the block immediate before and after it on the free list.
+ * Find the blocks immediately before and after the newly freed block on the free list.
*/
PreviousBlock = NULL;
NextBlock = MmPagedPoolFirstFreeBlock;
/*
* If the next block is immediately adjacent to the newly freed one then
- * free them.
+ * merge them.
*/
if (NextBlock != NULL &&
((PVOID)FreeBlock + FreeBlock->Size) == (PVOID)NextBlock)
/*
* If the previous block is adjacent to the newly freed one then
- * purge them.
+ * merge them.
*/
if (PreviousBlock != NULL &&
((PVOID)PreviousBlock + PreviousBlock->Size) == (PVOID)FreeBlock)