Author: tkreuzer
Date: Tue Jan 5 01:24:03 2010
New Revision: 44940
URL:
http://svn.reactos.org/svn/reactos?rev=44940&view=rev
Log:
[MM]
Add missing MmHyperspaceEnd, remove some unused variables
Modified:
branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/init.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/init.c
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntosk…
==============================================================================
--- branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/init.c [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/ntoskrnl/mm/amd64/init.c [iso-8859-1] Tue Jan 5
01:24:03 2010
@@ -60,6 +60,7 @@
PVOID MmNonPagedPoolStart;
PVOID MmNonPagedPoolExpansionStart;
PVOID MmNonPagedPoolEnd = MI_NONPAGED_POOL_END; // 0xFFFFFAE000000000
+PVOID MmHyperSpaceEnd = (PVOID)HYPER_SPACE_END;
PPHYSICAL_MEMORY_DESCRIPTOR MmPhysicalMemoryBlock;
ULONG MmNumberOfPhysicalPages, MmHighestPhysicalPage, MmLowestPhysicalPage = -1; //
FIXME: ULONG64
@@ -367,7 +368,6 @@
{
ULONG64 PageFrameOffset;
MMPTE TmplPte, *Pte;
- PFN_NUMBER PageCount;
/* HACK: don't use freeldr debug print anymore */
FrLdrDbgPrint = NoDbgPrint;
@@ -592,13 +592,13 @@
NTAPI
MiBuildPhysicalMemoryBlock(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
{
- PPHYSICAL_MEMORY_DESCRIPTOR Buffer, NewBuffer;
+ PPHYSICAL_MEMORY_DESCRIPTOR Buffer;
PMEMORY_ALLOCATION_DESCRIPTOR MdBlock;
PLIST_ENTRY ListEntry;
PFN_NUMBER NextPage = -1;
PULONG Bitmap;
ULONG Runs = 0;
- ULONG Size, i;
+ ULONG Size;
/* Calculate size for the PFN bitmap */
Size = ROUND_UP(MmHighestPhysicalPage + 1, sizeof(ULONG));
@@ -676,8 +676,6 @@
{
PMMPTE Pte;
MMPTE TmplPte;
- PFN_NUMBER PageFrameIndex;
- KIRQL OldIrql;
ULONG Size, BitMapSize;
/* Default size for paged pool is 4 times non paged pool */
@@ -823,10 +821,6 @@
}
else if (Phase == 1)
{
- PMMPTE Pte;
- ULONG OldCount;
- PPHYSICAL_MEMORY_RUN Run;
-
/* The PFN database was created, restore the free descriptor */
*MxFreeDescriptor = MxOldFreeDescriptor;