- Implement MmRawDeleteVirtualMapping.

- RamdiskUnmapPages works now.


svn path=/trunk/; revision=34664
This commit is contained in:
ReactOS Portable Systems Group
2008-07-22 07:11:33 +00:00
parent 1f497aae89
commit 0e52616f5f
+22 -2
View File
@@ -226,10 +226,30 @@ VOID
NTAPI
MmRawDeleteVirtualMapping(IN PVOID Address)
{
PMMPTE PointerPte, PointerPde;
//
// TODO
// Get the PDE
//
UNIMPLEMENTED;
PointerPde = MiGetPdeAddress(Address);
if (PointerPde->u.Hard.L1.Fault.Type == FaultPte) return;
//
// Get the PTE
//
PointerPte = MiGetPteAddress(Address);
ASSERT(PointerPte->u.Hard.L2.Small.Type == SmallPte);
//
// Destroy the PTE
//
PointerPte->u.Hard.AsUlong = 0;
ASSERT(PointerPte->u.Hard.L2.Fault.Type == FaultPte);
//
// Flush the TLB
//
KiFlushSingleTb(TRUE, Address);
}
VOID