mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 05:43:24 +00:00
[MM]
Add missing MmHyperspaceEnd, remove some unused variables svn path=/branches/ros-amd64-bringup/; revision=44940
This commit is contained in:
parent
0926f419e7
commit
d79f73c174
|
@ -60,6 +60,7 @@ PVOID MmNonPagedSystemStart; // FFFFFAA000000000
|
||||||
PVOID MmNonPagedPoolStart;
|
PVOID MmNonPagedPoolStart;
|
||||||
PVOID MmNonPagedPoolExpansionStart;
|
PVOID MmNonPagedPoolExpansionStart;
|
||||||
PVOID MmNonPagedPoolEnd = MI_NONPAGED_POOL_END; // 0xFFFFFAE000000000
|
PVOID MmNonPagedPoolEnd = MI_NONPAGED_POOL_END; // 0xFFFFFAE000000000
|
||||||
|
PVOID MmHyperSpaceEnd = (PVOID)HYPER_SPACE_END;
|
||||||
|
|
||||||
PPHYSICAL_MEMORY_DESCRIPTOR MmPhysicalMemoryBlock;
|
PPHYSICAL_MEMORY_DESCRIPTOR MmPhysicalMemoryBlock;
|
||||||
ULONG MmNumberOfPhysicalPages, MmHighestPhysicalPage, MmLowestPhysicalPage = -1; // FIXME: ULONG64
|
ULONG MmNumberOfPhysicalPages, MmHighestPhysicalPage, MmLowestPhysicalPage = -1; // FIXME: ULONG64
|
||||||
|
@ -367,7 +368,6 @@ MiInitializePageTable()
|
||||||
{
|
{
|
||||||
ULONG64 PageFrameOffset;
|
ULONG64 PageFrameOffset;
|
||||||
MMPTE TmplPte, *Pte;
|
MMPTE TmplPte, *Pte;
|
||||||
PFN_NUMBER PageCount;
|
|
||||||
|
|
||||||
/* HACK: don't use freeldr debug print anymore */
|
/* HACK: don't use freeldr debug print anymore */
|
||||||
FrLdrDbgPrint = NoDbgPrint;
|
FrLdrDbgPrint = NoDbgPrint;
|
||||||
|
@ -592,13 +592,13 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
MiBuildPhysicalMemoryBlock(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
MiBuildPhysicalMemoryBlock(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
{
|
{
|
||||||
PPHYSICAL_MEMORY_DESCRIPTOR Buffer, NewBuffer;
|
PPHYSICAL_MEMORY_DESCRIPTOR Buffer;
|
||||||
PMEMORY_ALLOCATION_DESCRIPTOR MdBlock;
|
PMEMORY_ALLOCATION_DESCRIPTOR MdBlock;
|
||||||
PLIST_ENTRY ListEntry;
|
PLIST_ENTRY ListEntry;
|
||||||
PFN_NUMBER NextPage = -1;
|
PFN_NUMBER NextPage = -1;
|
||||||
PULONG Bitmap;
|
PULONG Bitmap;
|
||||||
ULONG Runs = 0;
|
ULONG Runs = 0;
|
||||||
ULONG Size, i;
|
ULONG Size;
|
||||||
|
|
||||||
/* Calculate size for the PFN bitmap */
|
/* Calculate size for the PFN bitmap */
|
||||||
Size = ROUND_UP(MmHighestPhysicalPage + 1, sizeof(ULONG));
|
Size = ROUND_UP(MmHighestPhysicalPage + 1, sizeof(ULONG));
|
||||||
|
@ -676,8 +676,6 @@ MiBuildPagedPool(VOID)
|
||||||
{
|
{
|
||||||
PMMPTE Pte;
|
PMMPTE Pte;
|
||||||
MMPTE TmplPte;
|
MMPTE TmplPte;
|
||||||
PFN_NUMBER PageFrameIndex;
|
|
||||||
KIRQL OldIrql;
|
|
||||||
ULONG Size, BitMapSize;
|
ULONG Size, BitMapSize;
|
||||||
|
|
||||||
/* Default size for paged pool is 4 times non paged pool */
|
/* Default size for paged pool is 4 times non paged pool */
|
||||||
|
@ -823,10 +821,6 @@ MmArmInitSystem(IN ULONG Phase,
|
||||||
}
|
}
|
||||||
else if (Phase == 1)
|
else if (Phase == 1)
|
||||||
{
|
{
|
||||||
PMMPTE Pte;
|
|
||||||
ULONG OldCount;
|
|
||||||
PPHYSICAL_MEMORY_RUN Run;
|
|
||||||
|
|
||||||
/* The PFN database was created, restore the free descriptor */
|
/* The PFN database was created, restore the free descriptor */
|
||||||
*MxFreeDescriptor = MxOldFreeDescriptor;
|
*MxFreeDescriptor = MxOldFreeDescriptor;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue