mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Marked the initial kernel space as mapped.
svn path=/trunk/; revision=4698
This commit is contained in:
parent
8674a82d87
commit
8e68ec6bf2
1 changed files with 4 additions and 2 deletions
|
@ -363,7 +363,7 @@ MmInitializePageList(PVOID FirstPhysKernelAddress,
|
||||||
i = 2;
|
i = 2;
|
||||||
if ((ULONG)FirstPhysKernelAddress < 0xa0000)
|
if ((ULONG)FirstPhysKernelAddress < 0xa0000)
|
||||||
{
|
{
|
||||||
MmStats.NrFreePages += (((ULONG)FirstPhysKernelAddress/PAGE_SIZE) - 1);
|
MmStats.NrFreePages += (((ULONG)FirstPhysKernelAddress/PAGE_SIZE) - 2);
|
||||||
for (; i<((ULONG)FirstPhysKernelAddress/PAGE_SIZE); i++)
|
for (; i<((ULONG)FirstPhysKernelAddress/PAGE_SIZE); i++)
|
||||||
{
|
{
|
||||||
MmPageArray[i].Flags = MM_PHYSICAL_PAGE_FREE;
|
MmPageArray[i].Flags = MM_PHYSICAL_PAGE_FREE;
|
||||||
|
@ -377,6 +377,7 @@ MmInitializePageList(PVOID FirstPhysKernelAddress,
|
||||||
{
|
{
|
||||||
MmPageArray[i].Flags = MM_PHYSICAL_PAGE_USED;
|
MmPageArray[i].Flags = MM_PHYSICAL_PAGE_USED;
|
||||||
MmPageArray[i].ReferenceCount = 1;
|
MmPageArray[i].ReferenceCount = 1;
|
||||||
|
MmPageArray[i].MapCount = 1;
|
||||||
InsertTailList(&UsedPageListHeads[MC_NPPOOL],
|
InsertTailList(&UsedPageListHeads[MC_NPPOOL],
|
||||||
&MmPageArray[i].ListEntry);
|
&MmPageArray[i].ListEntry);
|
||||||
}
|
}
|
||||||
|
@ -399,7 +400,7 @@ MmInitializePageList(PVOID FirstPhysKernelAddress,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
MmStats.NrFreePages += ((0xa0000 / PAGE_SIZE) - 1);
|
MmStats.NrFreePages += ((0xa0000 / PAGE_SIZE) - 2);
|
||||||
for (; i<(0xa0000 / PAGE_SIZE); i++)
|
for (; i<(0xa0000 / PAGE_SIZE); i++)
|
||||||
{
|
{
|
||||||
MmPageArray[i].Flags = MM_PHYSICAL_PAGE_FREE;
|
MmPageArray[i].Flags = MM_PHYSICAL_PAGE_FREE;
|
||||||
|
@ -429,6 +430,7 @@ MmInitializePageList(PVOID FirstPhysKernelAddress,
|
||||||
{
|
{
|
||||||
MmPageArray[i].Flags = MM_PHYSICAL_PAGE_USED;
|
MmPageArray[i].Flags = MM_PHYSICAL_PAGE_USED;
|
||||||
MmPageArray[i].ReferenceCount = 1;
|
MmPageArray[i].ReferenceCount = 1;
|
||||||
|
MmPageArray[i].MapCount = 1;
|
||||||
InsertTailList(&UsedPageListHeads[MC_NPPOOL],
|
InsertTailList(&UsedPageListHeads[MC_NPPOOL],
|
||||||
&MmPageArray[i].ListEntry);
|
&MmPageArray[i].ListEntry);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue