Exemplo n.º 1
0
 internal static void UserUnmapPhysicalMemory(UIntPtr startAddr,
                                              UIntPtr limitAddr)
 {
     if (useAddressTranslation)
     {
         VMManager.UnmapPhysicalMemory(ProtectionDomain.CurrentDomain.UserRange,
                                       Thread.CurrentProcess, startAddr, limitAddr);
     }
 }
Exemplo n.º 2
0
 internal static void KernelUnmapPhysicalMemory(UIntPtr startAddr,
                                                UIntPtr limitAddr)
 {
     if (useAddressTranslation)
     {
         if (VMManager.IsPermaMapped(startAddr, limitAddr))
         {
             return; // nothing to do
         }
         else
         {
             VMManager.UnmapPhysicalMemory(KernelRangeWrapper,
                                           Process.kernelProcess,
                                           startAddr, limitAddr);
         }
     }
     // else do nothing
 }