Changeset 70157 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Dec 15, 2017 4:18:28 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 119719
- Location:
- trunk/src/VBox/Runtime/r0drv/nt
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/alloc-r0drv-nt.cpp
r70153 r70157 77 77 { 78 78 pHdr->u32Magic += 1; 79 ExFreePool(pHdr); 79 if (g_pfnrtExFreePoolWithTag) 80 g_pfnrtExFreePoolWithTag(pHdr, IPRT_NT_POOL_TAG); 81 else 82 ExFreePool(pHdr); 80 83 } 81 84 -
trunk/src/VBox/Runtime/r0drv/nt/initterm-r0drv-nt.cpp
r70153 r70157 45 45 /** ExAllocatePoolWithTag, introduced in W2K. */ 46 46 decltype(ExAllocatePoolWithTag) *g_pfnrtExAllocatePoolWithTag; 47 /** ExFreePoolWithTag, introduced in W2K. */ 48 decltype(ExFreePoolWithTag) *g_pfnrtExFreePoolWithTag; 47 49 /** ExSetTimerResolution, introduced in W2K. */ 48 50 PFNMYEXSETTIMERRESOLUTION g_pfnrtNtExSetTimerResolution; … … 274 276 275 277 GET_SYSTEM_ROUTINE(ExAllocatePoolWithTag); 278 GET_SYSTEM_ROUTINE(ExFreePoolWithTag); 276 279 GET_SYSTEM_ROUTINE_PRF(Nt,ExSetTimerResolution); 277 280 GET_SYSTEM_ROUTINE_PRF(Nt,KeFlushQueuedDpcs); -
trunk/src/VBox/Runtime/r0drv/nt/internal-r0drv-nt.h
r70153 r70157 59 59 60 60 extern decltype(ExAllocatePoolWithTag) *g_pfnrtExAllocatePoolWithTag; 61 extern decltype(ExFreePoolWithTag) *g_pfnrtExFreePoolWithTag; 61 62 extern PFNMYEXSETTIMERRESOLUTION g_pfnrtNtExSetTimerResolution; 62 63 extern PFNMYKEFLUSHQUEUEDDPCS g_pfnrtNtKeFlushQueuedDpcs; -
trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp
r70153 r70157 111 111 case RTR0MEMOBJTYPE_PAGE: 112 112 Assert(pMemNt->Core.pv); 113 ExFreePool(pMemNt->Core.pv); 113 if (g_pfnrtExFreePoolWithTag) 114 g_pfnrtExFreePoolWithTag(pMemNt->Core.pv, IPRT_NT_POOL_TAG); 115 else 116 ExFreePool(pMemNt->Core.pv); 114 117 pMemNt->Core.pv = NULL; 115 118 … … 368 371 PhysAddrLowest.QuadPart = 0; 369 372 PhysAddrBoundary.QuadPart = (uAlignment == PAGE_SIZE) ? 0 : uAlignment; 370 pv = MmAllocateContiguousMemorySpecifyCache(cb, PhysAddrLowest, PhysAddrHighest, PhysAddrBoundary, MmCached);373 pv = g_pfnrtMmAllocateContiguousMemorySpecifyCache(cb, PhysAddrLowest, PhysAddrHighest, PhysAddrBoundary, MmCached); 371 374 } 372 375 else if (uAlignment == PAGE_SIZE) -
trunk/src/VBox/Runtime/r0drv/nt/the-nt-kernel.h
r70153 r70157 74 74 */ 75 75 #undef ExAllocatePool 76 #undef ExFreePool 76 77 77 78 /** @def IPRT_NT_POOL_TAG
Note:
See TracChangeset
for help on using the changeset viewer.