mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
- Implement MmRawDeleteVirtualMapping.
- RamdiskUnmapPages works now. svn path=/trunk/; revision=34664
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user