Refactor memory clearing calls and cleanup code style
This commit is contained in:
@@ -77,7 +77,6 @@ MM::Pte::GetSystemPteBaseAddress(VOID)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Performs the initial setup of the system's page table hierarchy.
|
* Performs the initial setup of the system's page table hierarchy.
|
||||||
*
|
*
|
||||||
@@ -193,7 +192,7 @@ MM::Pte::MapP5E(PVOID StartAddress,
|
|||||||
*PointerP5e = *TemplateP5e;
|
*PointerP5e = *TemplateP5e;
|
||||||
|
|
||||||
/* Clear the page table */
|
/* Clear the page table */
|
||||||
RtlZeroMemory(MM::Paging::GetPteVirtualAddress(PointerP5e), MM_PAGE_SIZE);
|
RTL::Memory::ZeroMemory(MM::Paging::GetPteVirtualAddress(PointerP5e), MM_PAGE_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get next table entry */
|
/* Get next table entry */
|
||||||
@@ -240,7 +239,7 @@ MM::Pte::MapPPE(PVOID StartAddress,
|
|||||||
*PointerPpe = *TemplatePpe;
|
*PointerPpe = *TemplatePpe;
|
||||||
|
|
||||||
/* Clear the page table */
|
/* Clear the page table */
|
||||||
RtlZeroMemory(MM::Paging::GetPteVirtualAddress(PointerPpe), MM_PAGE_SIZE);
|
RTL::Memory::ZeroMemory(MM::Paging::GetPteVirtualAddress(PointerPpe), MM_PAGE_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get next table entry */
|
/* Get next table entry */
|
||||||
@@ -287,7 +286,7 @@ MM::Pte::MapPXE(PVOID StartAddress,
|
|||||||
*PointerPxe = *TemplatePxe;
|
*PointerPxe = *TemplatePxe;
|
||||||
|
|
||||||
/* Clear the page table */
|
/* Clear the page table */
|
||||||
RtlZeroMemory(MM::Paging::GetPteVirtualAddress(PointerPxe), MM_PAGE_SIZE);
|
RTL::Memory::ZeroMemory(MM::Paging::GetPteVirtualAddress(PointerPxe), MM_PAGE_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get next table entry */
|
/* Get next table entry */
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ MM::Pte::InitializePageTable(VOID)
|
|||||||
MM::Pte::MapPDE(MemoryLayout->SystemSpaceStart, (PVOID)MM_HIGHEST_SYSTEM_ADDRESS, &TemplatePte);
|
MM::Pte::MapPDE(MemoryLayout->SystemSpaceStart, (PVOID)MM_HIGHEST_SYSTEM_ADDRESS, &TemplatePte);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
* Maps a range of virtual addresses at the PPE (Page Directory Pointer Entry) level.
|
* Maps a range of virtual addresses at the PPE (Page Directory Pointer Entry) level.
|
||||||
*
|
*
|
||||||
* @param StartAddress
|
* @param StartAddress
|
||||||
|
|||||||
Reference in New Issue
Block a user