mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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,7 +249,8 @@ VOID MiParseBIOSMemoryMap(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PVOID MmInitializePageList(PVOID FirstPhysKernelAddress,
|
PVOID
|
||||||
|
MmInitializePageList(PVOID FirstPhysKernelAddress,
|
||||||
PVOID LastPhysKernelAddress,
|
PVOID LastPhysKernelAddress,
|
||||||
ULONG MemorySizeInPages,
|
ULONG MemorySizeInPages,
|
||||||
ULONG LastKernelAddress,
|
ULONG LastKernelAddress,
|
||||||
|
@ -285,6 +286,8 @@ PVOID MmInitializePageList(PVOID FirstPhysKernelAddress,
|
||||||
InitializeListHead(&FreeZeroedPageListHead);
|
InitializeListHead(&FreeZeroedPageListHead);
|
||||||
InitializeListHead(&BiosPageListHead);
|
InitializeListHead(&BiosPageListHead);
|
||||||
|
|
||||||
|
LastKernelAddress = PAGE_ROUND_UP(LastKernelAddress);
|
||||||
|
|
||||||
Reserved =
|
Reserved =
|
||||||
PAGE_ROUND_UP((MemorySizeInPages * sizeof(PHYSICAL_PAGE))) / PAGESIZE;
|
PAGE_ROUND_UP((MemorySizeInPages * sizeof(PHYSICAL_PAGE))) / PAGESIZE;
|
||||||
MmPageArray = (PHYSICAL_PAGE *)LastKernelAddress;
|
MmPageArray = (PHYSICAL_PAGE *)LastKernelAddress;
|
||||||
|
@ -322,6 +325,7 @@ PVOID MmInitializePageList(PVOID FirstPhysKernelAddress,
|
||||||
KeBugCheck(0);
|
KeBugCheck(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
memset((PVOID)MmPageArray + (i * PAGESIZE), 0, PAGESIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue