From ff9a3a9a793d54620b25ecb4452b5786759fa434 Mon Sep 17 00:00:00 2001 From: David Welch Date: Wed, 26 Dec 2001 23:34:07 +0000 Subject: [PATCH] Misc fixes. svn path=/trunk/; revision=2436 --- reactos/ntoskrnl/mm/freelist.c | 2 -- reactos/ntoskrnl/mm/ppool.c | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/reactos/ntoskrnl/mm/freelist.c b/reactos/ntoskrnl/mm/freelist.c index c33950ff8bb..e150a403c9d 100644 --- a/reactos/ntoskrnl/mm/freelist.c +++ b/reactos/ntoskrnl/mm/freelist.c @@ -238,8 +238,6 @@ PVOID MmInitializePageList(PVOID FirstPhysKernelAddress, 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); diff --git a/reactos/ntoskrnl/mm/ppool.c b/reactos/ntoskrnl/mm/ppool.c index 17f605597bc..453f4f0f0eb 100644 --- a/reactos/ntoskrnl/mm/ppool.c +++ b/reactos/ntoskrnl/mm/ppool.c @@ -1,4 +1,4 @@ -/* $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 @@ -198,12 +198,12 @@ ExFreePagedPool(IN PVOID Block) 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; @@ -229,7 +229,7 @@ ExFreePagedPool(IN PVOID Block) /* * 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) @@ -245,7 +245,7 @@ ExFreePagedPool(IN PVOID Block) /* * 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)