mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Zero page list
svn path=/trunk/; revision=2487
This commit is contained in:
parent
fa8eafcb38
commit
cc47e7056e
1 changed files with 10 additions and 6 deletions
|
@ -249,12 +249,13 @@ VOID MiParseBIOSMemoryMap(
|
|||
}
|
||||
}
|
||||
|
||||
PVOID MmInitializePageList(PVOID FirstPhysKernelAddress,
|
||||
PVOID LastPhysKernelAddress,
|
||||
ULONG MemorySizeInPages,
|
||||
ULONG LastKernelAddress,
|
||||
PADDRESS_RANGE BIOSMemoryMap,
|
||||
ULONG AddressRangeCount)
|
||||
PVOID
|
||||
MmInitializePageList(PVOID FirstPhysKernelAddress,
|
||||
PVOID LastPhysKernelAddress,
|
||||
ULONG MemorySizeInPages,
|
||||
ULONG LastKernelAddress,
|
||||
PADDRESS_RANGE BIOSMemoryMap,
|
||||
ULONG AddressRangeCount)
|
||||
/*
|
||||
* FUNCTION: Initializes the page list with all pages free
|
||||
* except those known to be reserved and those used by the kernel
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue