Remove dead code from paging and PTE management
This commit is contained in:
@@ -49,21 +49,6 @@ MM::PageMap::ClearPte(IN PMMPTE PtePointer)
|
||||
PtePointer->Long = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value representing an empty PTE list.
|
||||
*
|
||||
* @return This routine returns the value representing an empty PTE list.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
XTAPI
|
||||
ULONGLONG
|
||||
MM::PageMap::GetEmptyPteList(VOID)
|
||||
{
|
||||
/* Return empty PTE list mask */
|
||||
return PageMapInfo.EmptyPteList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the next entry in a PTE list.
|
||||
*
|
||||
@@ -762,9 +747,6 @@ MM::PageMapBasic::InitializePageMapInfo(VOID)
|
||||
/* Set PML4 page map information */
|
||||
PageMapInfo.Xpa = FALSE;
|
||||
|
||||
/* Set PML4 empty PTE list mask */
|
||||
PageMapInfo.EmptyPteList = 0xFFFFFFFFUI64;
|
||||
|
||||
/* Set PML4 base addresses */
|
||||
PageMapInfo.PteBase = MM_PTE_BASE;
|
||||
PageMapInfo.PdeBase = MM_PDE_BASE;
|
||||
@@ -862,9 +844,6 @@ MM::PageMapXpa::InitializePageMapInfo(VOID)
|
||||
/* Set PML5 page map information */
|
||||
PageMapInfo.Xpa = TRUE;
|
||||
|
||||
/* Set PML5 empty PTE list mask */
|
||||
PageMapInfo.EmptyPteList = 0xFFFFFFFFUI64;
|
||||
|
||||
/* Set PML5 base addresses */
|
||||
PageMapInfo.PteBase = MM_PTE_LA57_BASE;
|
||||
PageMapInfo.PdeBase = MM_PDE_LA57_BASE;
|
||||
|
||||
@@ -166,9 +166,6 @@ MM::Pte::InitializeSystemPte(VOID)
|
||||
{
|
||||
/* Initialize the PTE template */
|
||||
ValidPte = {MM_PTE_VALID|MM_PTE_EXECUTE_READWRITE|MM_PTE_DIRTY|MM_PTE_ACCESSED};
|
||||
|
||||
/* Initialize the system's PTE list terminator */
|
||||
ListTerminator = MM::Paging::GetPteListTerminator();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -97,9 +97,6 @@ MMPFNLIST MM::Pfn::ZeroedPagesList = {0, ZeroedPageList, MAXULONG_PTR, MAXULONG_
|
||||
/* Array of lists for available System PTEs, separated by pool type */
|
||||
MMPTE MM::Pte::FirstSystemFreePte[MaximumPtePoolTypes];
|
||||
|
||||
/* PTE list terminator */
|
||||
ULONG_PTR MM::Pte::ListTerminator;
|
||||
|
||||
/* Virtual base address of the System PTE space */
|
||||
PMMPTE MM::Pte::SystemPteBase;
|
||||
|
||||
|
||||
@@ -9,21 +9,6 @@
|
||||
#include <xtos.hh>
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value representing an empty PTE list.
|
||||
*
|
||||
* @return This routine returns the value representing an empty PTE list.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
XTAPI
|
||||
ULONG
|
||||
MM::PageMap::GetEmptyPteList(VOID)
|
||||
{
|
||||
/* Return empty PTE list mask */
|
||||
return PageMapInfo.EmptyPteList;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the address of the PDE (Page Directory Entry), that maps given address.
|
||||
*
|
||||
@@ -340,21 +325,6 @@ MM::PageMapBasic::GetPteDistance(PMMPTE EndPte,
|
||||
return ((ULONG_PTR)EndPte - (ULONG_PTR)StartPte) / sizeof(MMPML2_PTE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the terminator value for a PTE list (PML2).
|
||||
*
|
||||
* @return This routine returns the terminator value for a PTE list.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
XTAPI
|
||||
ULONG_PTR
|
||||
MM::PageMapBasic::GetPteListTerminator(VOID)
|
||||
{
|
||||
/* Return PTE list terminator value for PML2 */
|
||||
return 0xFFFFF;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the size of a PTE for basic paging (PML2).
|
||||
*
|
||||
@@ -456,9 +426,6 @@ MM::PageMapBasic::InitializePageMapInfo(VOID)
|
||||
/* Set PML2 page map information */
|
||||
PageMapInfo.Xpa = FALSE;
|
||||
|
||||
/* Set PML2 empty PTE list mask */
|
||||
PageMapInfo.EmptyPteList = (ULONG)0xFFFFF;
|
||||
|
||||
/* Set PML2 base addresses */
|
||||
PageMapInfo.PteBase = MM_PTE_BASE;
|
||||
PageMapInfo.PdeBase = MM_PDE_LEGACY_BASE;
|
||||
@@ -828,21 +795,6 @@ MM::PageMapXpa::GetPteDistance(PMMPTE EndPte,
|
||||
return ((ULONG_PTR)EndPte - (ULONG_PTR)StartPte) / sizeof(MMPML3_PTE);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the terminator value for a PTE list (PML3).
|
||||
*
|
||||
* @return This routine returns the terminator value for a PTE list.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
XTAPI
|
||||
ULONG_PTR
|
||||
MM::PageMapXpa::GetPteListTerminator(VOID)
|
||||
{
|
||||
/* Return PTE list terminator value for PML3 */
|
||||
return 0xFFFFFFFF;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the size of a PTE for XPA paging (PML3).
|
||||
*
|
||||
@@ -944,9 +896,6 @@ MM::PageMapXpa::InitializePageMapInfo(VOID)
|
||||
/* Set PML3 page map information */
|
||||
PageMapInfo.Xpa = TRUE;
|
||||
|
||||
/* Set PML3 empty PTE list mask */
|
||||
PageMapInfo.EmptyPteList = (ULONG)0xFFFFFFFF;
|
||||
|
||||
/* Set PML3 base addresses */
|
||||
PageMapInfo.PteBase = MM_PTE_BASE;
|
||||
PageMapInfo.PdeBase = MM_PDE_BASE;
|
||||
|
||||
@@ -125,9 +125,6 @@ MM::Pte::InitializeSystemPte(VOID)
|
||||
{
|
||||
/* Initialize the PTE template */
|
||||
ValidPte = {{MM_PTE_VALID|MM_PTE_EXECUTE_READWRITE|MM_PTE_DIRTY|MM_PTE_ACCESSED}};
|
||||
|
||||
/* Initialize the system's PTE list terminator */
|
||||
ListTerminator = MM::Paging::GetPteListTerminator();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -101,21 +101,6 @@ MM::Paging::FlushTlb(VOID)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value representing an empty PTE list.
|
||||
*
|
||||
* @return This routine returns the value representing an empty PTE list.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
XTAPI
|
||||
ULONG_PTR
|
||||
MM::Paging::GetEmptyPteList(VOID)
|
||||
{
|
||||
/* Return empty PTE list mask */
|
||||
return (ULONG_PTR)PmlRoutines->GetEmptyPteList();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the next entry in a PTE list.
|
||||
*
|
||||
@@ -351,21 +336,6 @@ MM::Paging::GetPteDistance(PMMPTE EndPte,
|
||||
return PmlRoutines->GetPteDistance(EndPte, StartPte);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the terminator value for a PTE list.
|
||||
*
|
||||
* @return This routine returns the terminator value for a PTE list.
|
||||
*
|
||||
* @since XT 1.0
|
||||
*/
|
||||
XTAPI
|
||||
ULONG_PTR
|
||||
MM::Paging::GetPteListTerminator(VOID)
|
||||
{
|
||||
/* Return PTE list terminator value */
|
||||
return PmlRoutines->GetPteListTerminator();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the size of a PTE.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user