Zero page list

svn path=/trunk/; revision=2487
This commit is contained in:
David Welch 2002-01-04 23:39:07 +00:00
parent fa8eafcb38
commit cc47e7056e

View file

@ -249,7 +249,8 @@ VOID MiParseBIOSMemoryMap(
}
}
PVOID MmInitializePageList(PVOID FirstPhysKernelAddress,
PVOID
MmInitializePageList(PVOID FirstPhysKernelAddress,
PVOID LastPhysKernelAddress,
ULONG MemorySizeInPages,
ULONG LastKernelAddress,
@ -285,6 +286,8 @@ PVOID MmInitializePageList(PVOID FirstPhysKernelAddress,
InitializeListHead(&FreeZeroedPageListHead);
InitializeListHead(&BiosPageListHead);
LastKernelAddress = PAGE_ROUND_UP(LastKernelAddress);
Reserved =
PAGE_ROUND_UP((MemorySizeInPages * sizeof(PHYSICAL_PAGE))) / PAGESIZE;
MmPageArray = (PHYSICAL_PAGE *)LastKernelAddress;
@ -322,6 +325,7 @@ PVOID MmInitializePageList(PVOID FirstPhysKernelAddress,
KeBugCheck(0);
}
}
memset((PVOID)MmPageArray + (i * PAGESIZE), 0, PAGESIZE);
}
/*