Changeset 91481 in vbox for trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp
- Timestamp:
- Sep 30, 2021 12:06:31 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp
r91480 r91481 626 626 627 627 628 DECLHIDDEN(int) rtR0MemObjNativeAllocPhys(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest, size_t uAlignment) 628 DECLHIDDEN(int) rtR0MemObjNativeAllocPhys(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest, size_t uAlignment, 629 const char *pszTag) 629 630 { 630 631 /* … … 663 664 if (iPage >= cPages) 664 665 { 665 PRTR0MEMOBJNT pMemNt = (PRTR0MEMOBJNT)rtR0MemObjNew(sizeof(*pMemNt), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);666 PRTR0MEMOBJNT pMemNt = (PRTR0MEMOBJNT)rtR0MemObjNew(sizeof(*pMemNt), RTR0MEMOBJTYPE_PHYS, NULL, cb, pszTag); 666 667 if (pMemNt) 667 668 { … … 685 686 686 687 687 DECLHIDDEN(int) rtR0MemObjNativeAllocPhysNC(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest )688 DECLHIDDEN(int) rtR0MemObjNativeAllocPhysNC(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest, const char *pszTag) 688 689 { 689 690 if (g_pfnrtMmAllocatePagesForMdl && g_pfnrtMmFreePagesFromMdl) 690 691 { 692 /** @todo use the Ex version with the fail-if-not-all-requested-pages flag 693 * when possible. */ 691 694 PHYSICAL_ADDRESS Zero; 692 695 Zero.QuadPart = 0; … … 698 701 if (MmGetMdlByteCount(pMdl) >= cb) 699 702 { 700 PRTR0MEMOBJNT pMemNt = (PRTR0MEMOBJNT)rtR0MemObjNew(sizeof(*pMemNt), RTR0MEMOBJTYPE_PHYS_NC, NULL, cb, NULL);703 PRTR0MEMOBJNT pMemNt = (PRTR0MEMOBJNT)rtR0MemObjNew(sizeof(*pMemNt), RTR0MEMOBJTYPE_PHYS_NC, NULL, cb, pszTag); 701 704 if (pMemNt) 702 705 {
Note:
See TracChangeset
for help on using the changeset viewer.