mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
cleanup
This commit is contained in:
parent
972d275765
commit
91bdeaeb09
3 changed files with 4 additions and 6 deletions
|
@ -1144,7 +1144,7 @@ MiDecrementShareCount(IN PMMPFN Pfn1,
|
|||
|
||||
DPRINT("Decrementing %p from %p\n", Pfn1, _ReturnAddress());
|
||||
|
||||
if (Pfn1->Dbg1.IsStackPfn) __debugbreak();
|
||||
//if (Pfn1->Dbg1.IsStackPfn) __debugbreak();
|
||||
|
||||
/* Page must be in-use */
|
||||
if ((Pfn1->u3.e1.PageLocation != ActiveAndValid) &&
|
||||
|
|
|
@ -237,7 +237,7 @@ MmDeleteKernelStack(IN PVOID StackBase,
|
|||
Pfn1 = MiGetPfnEntry(PageFrameNumber);
|
||||
if (Pfn1->u3.e1.PageLocation != ActiveAndValid) __debugbreak();
|
||||
|
||||
PointerPte->u.Long = 0;
|
||||
//PointerPte->u.Long = 0;
|
||||
|
||||
/* Now get the page of the page table mapping it */
|
||||
PageTableFrameNumber = Pfn1->u4.PteFrame;
|
||||
|
|
|
@ -189,10 +189,8 @@ MiReleaseKernelStackPtes(
|
|||
ASSERT(NumberOfPtes <= MI_STACK_PAGES);
|
||||
ASSERT(IS_ALIGNED(MiPteToAddress(FirstPte), MI_STACK_SIZE));
|
||||
|
||||
for (ULONG i = 0; i < MI_STACK_PAGES; i++)
|
||||
{
|
||||
if (FirstPte[i].u.Hard.Valid) __debugbreak();
|
||||
}
|
||||
/* Zero the PTEs */
|
||||
RtlZeroMemory(FirstPte, MI_STACK_PAGES * sizeof(MMPTE));
|
||||
|
||||
KeAcquireSpinLock(&MiStackPteSpinLock, &OldIrql);
|
||||
|
||||
|
|
Loading…
Reference in a new issue