Refactor panic calls in memory manager
This commit is contained in:
@@ -173,7 +173,7 @@ MM::Pfn::DecrementReferenceCount(IN PMMPFN PageFrameNumber,
|
|||||||
if(PageFrameNumber->u2.ShareCount)
|
if(PageFrameNumber->u2.ShareCount)
|
||||||
{
|
{
|
||||||
/* This indicates a bug; crash the system */
|
/* This indicates a bug; crash the system */
|
||||||
KE::Crash::PanicEx(0x4E,
|
KE::Crash::Panic(0x4E,
|
||||||
0x07,
|
0x07,
|
||||||
PageFrameIndex,
|
PageFrameIndex,
|
||||||
PageFrameNumber->u2.ShareCount,
|
PageFrameNumber->u2.ShareCount,
|
||||||
@@ -256,7 +256,7 @@ MM::Pfn::DecrementShareCount(IN PMMPFN PageFrameNumber,
|
|||||||
(PageFrameNumber->u3.e1.PageLocation != StandbyPageList))
|
(PageFrameNumber->u3.e1.PageLocation != StandbyPageList))
|
||||||
{
|
{
|
||||||
/* This indicates a bug; crash the system */
|
/* This indicates a bug; crash the system */
|
||||||
KE::Crash::PanicEx(0x4E,
|
KE::Crash::Panic(0x4E,
|
||||||
0x99,
|
0x99,
|
||||||
PageFrameIndex,
|
PageFrameIndex,
|
||||||
PageFrameNumber->u3.e1.PageLocation,
|
PageFrameNumber->u3.e1.PageLocation,
|
||||||
@@ -591,7 +591,7 @@ MM::Pfn::LinkPage(IN PMMPFNLIST ListHead,
|
|||||||
MM::Paging::GetPteSoftwareTransition(&PageFrame->OriginalPte))
|
MM::Paging::GetPteSoftwareTransition(&PageFrame->OriginalPte))
|
||||||
{
|
{
|
||||||
/* Crash system due to corrupted PFN/PTE state */
|
/* Crash system due to corrupted PFN/PTE state */
|
||||||
KE::Crash::PanicEx(0x71, 0x8888, 0, 0, 0);
|
KE::Crash::Panic(0x71, 0x8888, 0, 0, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -806,7 +806,7 @@ MM::Pfn::LinkPfn(IN PFN_NUMBER PageFrameIndex,
|
|||||||
if(Status != STATUS_SUCCESS)
|
if(Status != STATUS_SUCCESS)
|
||||||
{
|
{
|
||||||
/* Could not make the page table resident, crash system */
|
/* Could not make the page table resident, crash system */
|
||||||
KE::Crash::PanicEx(0x1,
|
KE::Crash::Panic(0x1,
|
||||||
(ULONG_PTR)0x61940,
|
(ULONG_PTR)0x61940,
|
||||||
(ULONG_PTR)PointerPte,
|
(ULONG_PTR)PointerPte,
|
||||||
MM::Paging::GetPageFrameNumber(PointerPte),
|
MM::Paging::GetPageFrameNumber(PointerPte),
|
||||||
|
|||||||
Reference in New Issue
Block a user