mirror of
https://github.com/donnaskiez/ac.git
synced 2024-11-21 22:24:08 +01:00
oh ye oh ye
This commit is contained in:
parent
4811893357
commit
40dfee0daa
1 changed files with 6 additions and 10 deletions
|
@ -168,14 +168,14 @@ VOID WalkKernelPageTables()
|
|||
return;
|
||||
}
|
||||
|
||||
cr3.BitAddress = __readcr3();
|
||||
|
||||
//KeRaiseIrql( DISPATCH_LEVEL, &irql );
|
||||
|
||||
PAGED_CODE();
|
||||
/* raise our irql to ensure we arent preempted by NOOB threads */
|
||||
KeRaiseIrql( DISPATCH_LEVEL, &irql );
|
||||
|
||||
/* disable interrupts to prevent any funny business occuring */
|
||||
_disable();
|
||||
|
||||
cr3.BitAddress = __readcr3();
|
||||
|
||||
physical.QuadPart = cr3.Bits.PhysicalAddress << PAGE_4KB_SHIFT;
|
||||
|
||||
pml4_base.BitAddress = MmGetVirtualForPhysical( physical );
|
||||
|
@ -258,10 +258,6 @@ VOID WalkKernelPageTables()
|
|||
if ( base_virtual_page == NULL || !MmIsAddressValid( base_virtual_page ) )
|
||||
continue;
|
||||
|
||||
/* this probably isnt needed but whatevs */
|
||||
//if ( base_virtual_page < 0xfffff80000000000 || base_virtual_page > 0xffffffffffffffff )
|
||||
// continue;
|
||||
|
||||
ScanPageForProcessAllocations( base_virtual_page, PAGE_BASE_SIZE );
|
||||
}
|
||||
}
|
||||
|
@ -270,7 +266,7 @@ VOID WalkKernelPageTables()
|
|||
|
||||
_enable();
|
||||
|
||||
//KeLowerIrql( irql );
|
||||
KeLowerIrql( irql );
|
||||
|
||||
DEBUG_LOG( "Finished scanning memory" );
|
||||
|
||||
|
|
Loading…
Reference in a new issue