Changeset 91480 in vbox for trunk/src/VBox/Runtime/r0drv
- Timestamp:
- Sep 29, 2021 11:52:11 PM (3 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp
r91479 r91480 937 937 938 938 939 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy) 939 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, 940 const char *pszTag) 940 941 { 941 942 AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED); … … 964 965 * Create the IPRT memory object. 965 966 */ 966 PRTR0MEMOBJDARWIN pMemDarwin = (PRTR0MEMOBJDARWIN)rtR0MemObjNew(sizeof(*pMemDarwin), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL); 967 PRTR0MEMOBJDARWIN pMemDarwin = (PRTR0MEMOBJDARWIN)rtR0MemObjNew(sizeof(*pMemDarwin), RTR0MEMOBJTYPE_PHYS, 968 NULL, cb, pszTag); 967 969 if (pMemDarwin) 968 970 { … … 1089 1091 1090 1092 1091 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment) 1092 { 1093 RT_NOREF(ppMem, pvFixed, cb, uAlignment); 1093 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, 1094 const char *pszTag) 1095 { 1096 RT_NOREF(ppMem, pvFixed, cb, uAlignment, pszTag); 1094 1097 return VERR_NOT_SUPPORTED; 1095 1098 } 1096 1099 1097 1100 1098 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process) 1099 { 1100 RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process); 1101 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, 1102 RTR0PROCESS R0Process, const char *pszTag) 1103 { 1104 RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process, pszTag); 1101 1105 return VERR_NOT_SUPPORTED; 1102 1106 } -
trunk/src/VBox/Runtime/r0drv/freebsd/memobj-r0drv-freebsd.c
r91479 r91480 481 481 482 482 483 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy) 483 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, 484 const char *pszTag) 484 485 { 485 486 AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED); 486 487 487 488 /* create the object. */ 488 PRTR0MEMOBJFREEBSD pMemFreeBSD = (PRTR0MEMOBJFREEBSD)rtR0MemObjNew(sizeof(*pMemFreeBSD), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL); 489 PRTR0MEMOBJFREEBSD pMemFreeBSD = (PRTR0MEMOBJFREEBSD)rtR0MemObjNew(sizeof(*pMemFreeBSD), RTR0MEMOBJTYPE_PHYS, 490 NULL, cb, pszTag); 489 491 if (!pMemFreeBSD) 490 492 return VERR_NO_MEMORY; … … 563 565 * We're leaning on the examples provided by mmap and vm_mmap in vm_mmap.c here. 564 566 */ 565 static int rtR0MemObjNativeReserveInMap(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process, vm_map_t pMap) 567 static int rtR0MemObjNativeReserveInMap(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, 568 RTR0PROCESS R0Process, vm_map_t pMap, const char *pszTag) 566 569 { 567 570 int rc; … … 585 588 */ 586 589 PRTR0MEMOBJFREEBSD pMemFreeBSD = (PRTR0MEMOBJFREEBSD)rtR0MemObjNew(sizeof(*pMemFreeBSD), RTR0MEMOBJTYPE_RES_VIRT, 587 NULL, cb, NULL);590 NULL, cb, pszTag); 588 591 if (!pMemFreeBSD) 589 592 return VERR_NO_MEMORY; … … 633 636 634 637 635 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment) 636 { 637 return rtR0MemObjNativeReserveInMap(ppMem, pvFixed, cb, uAlignment, NIL_RTR0PROCESS, kernel_map); 638 } 639 640 641 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process) 638 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, 639 const char *pszTag) 640 { 641 return rtR0MemObjNativeReserveInMap(ppMem, pvFixed, cb, uAlignment, NIL_RTR0PROCESS, kernel_map, pszTag); 642 } 643 644 645 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, 646 RTR0PROCESS R0Process, const char *pszTag) 642 647 { 643 648 return rtR0MemObjNativeReserveInMap(ppMem, (void *)R3PtrFixed, cb, uAlignment, R0Process, 644 &((struct proc *)R0Process)->p_vmspace->vm_map );649 &((struct proc *)R0Process)->p_vmspace->vm_map, pszTag); 645 650 } 646 651 -
trunk/src/VBox/Runtime/r0drv/haiku/memobj-r0drv-haiku.c
r91479 r91480 284 284 285 285 286 int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy )286 int rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, const char *pszTag) 287 287 { 288 288 AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED); … … 290 290 291 291 /* Create the object. */ 292 PRTR0MEMOBJHAIKU pMemHaiku = (PRTR0MEMOBJHAIKU)rtR0MemObjNew(sizeof(*pMemHaiku), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);292 PRTR0MEMOBJHAIKU pMemHaiku = (PRTR0MEMOBJHAIKU)rtR0MemObjNew(sizeof(*pMemHaiku), RTR0MEMOBJTYPE_PHYS, NULL, cb, pszTag); 293 293 if (!pMemHaiku) 294 294 return VERR_NO_MEMORY; … … 393 393 394 394 395 int rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment) 396 { 395 int rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, const char *pszTag) 396 { 397 RT_NOREF(ppMem, pvFixed, cb, uAlignment, pszTag); 397 398 return VERR_NOT_SUPPORTED; 398 399 } 399 400 400 401 401 int rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process) 402 { 402 int rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, 403 RTR0PROCESS R0Process, const char *pszTag) 404 { 405 RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process, pszTag); 403 406 return VERR_NOT_SUPPORTED; 404 407 } -
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r91479 r91480 1156 1156 1157 1157 1158 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy) 1158 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, 1159 const char *pszTag) 1159 1160 { 1160 1161 IPRT_LINUX_SAVE_EFL_AC(); … … 1168 1169 AssertMsgReturn(PhysAddr == Phys, ("%#llx\n", (unsigned long long)Phys), VERR_ADDRESS_TOO_BIG); 1169 1170 1170 pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);1171 pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_PHYS, NULL, cb, pszTag); 1171 1172 if (!pMemLnx) 1172 1173 { … … 1438 1439 1439 1440 1440 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment) 1441 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, 1442 const char *pszTag) 1441 1443 { 1442 1444 #if RTLNX_VER_MIN(2,4,22) … … 1473 1475 if (pv) 1474 1476 { 1475 PRTR0MEMOBJLNX pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_RES_VIRT, pv, cb, NULL);1477 PRTR0MEMOBJLNX pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_RES_VIRT, pv, cb, pszTag); 1476 1478 if (pMemLnx) 1477 1479 { … … 1501 1503 1502 1504 1503 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process) 1505 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, 1506 RTR0PROCESS R0Process, const char *pszTag) 1504 1507 { 1505 1508 IPRT_LINUX_SAVE_EFL_AC(); … … 1526 1529 } 1527 1530 1528 pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_RES_VIRT, pv, cb, NULL);1531 pMemLnx = (PRTR0MEMOBJLNX)rtR0MemObjNew(sizeof(*pMemLnx), RTR0MEMOBJTYPE_RES_VIRT, pv, cb, pszTag); 1529 1532 if (!pMemLnx) 1530 1533 { -
trunk/src/VBox/Runtime/r0drv/memobj-r0drv.cpp
r91479 r91480 651 651 RT_ASSERT_PREEMPTIBLE(); 652 652 653 RT_NOREF_PV(pszTag);654 655 653 /* do the allocation. */ 656 return rtR0MemObjNativeEnterPhys(pMemObj, PhysAligned, cbAligned, uCachePolicy );654 return rtR0MemObjNativeEnterPhys(pMemObj, PhysAligned, cbAligned, uCachePolicy, pszTag); 657 655 } 658 656 RT_EXPORT_SYMBOL(RTR0MemObjEnterPhysTag); … … 674 672 RT_ASSERT_PREEMPTIBLE(); 675 673 676 RT_NOREF_PV(pszTag);677 678 674 /* do the reservation. */ 679 return rtR0MemObjNativeReserveKernel(pMemObj, pvFixed, cbAligned, uAlignment );675 return rtR0MemObjNativeReserveKernel(pMemObj, pvFixed, cbAligned, uAlignment, pszTag); 680 676 } 681 677 RT_EXPORT_SYMBOL(RTR0MemObjReserveKernelTag); … … 700 696 RT_ASSERT_PREEMPTIBLE(); 701 697 702 RT_NOREF_PV(pszTag);703 704 698 /* do the reservation. */ 705 return rtR0MemObjNativeReserveUser(pMemObj, R3PtrFixed, cbAligned, uAlignment, R0Process );699 return rtR0MemObjNativeReserveUser(pMemObj, R3PtrFixed, cbAligned, uAlignment, R0Process, pszTag); 706 700 } 707 701 RT_EXPORT_SYMBOL(RTR0MemObjReserveUserTag); -
trunk/src/VBox/Runtime/r0drv/netbsd/memobj-r0drv-netbsd.c
r91479 r91480 349 349 350 350 351 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy) 351 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, 352 const char *pszTag) 352 353 { 353 354 AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED); 354 355 355 356 /* create the object. */ 356 PRTR0MEMOBJNETBSD pMemNetBSD = (PRTR0MEMOBJNETBSD)rtR0MemObjNew(sizeof(*pMemNetBSD), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);357 PRTR0MEMOBJNETBSD pMemNetBSD = (PRTR0MEMOBJNETBSD)rtR0MemObjNew(sizeof(*pMemNetBSD), RTR0MEMOBJTYPE_PHYS, NULL, cb, pszTag); 357 358 if (!pMemNetBSD) 358 359 return VERR_NO_MEMORY; … … 404 405 } 405 406 406 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment) 407 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, 408 const char *pszTag) 407 409 { 408 410 if (pvFixed != (void *)-1) … … 413 415 } 414 416 415 PRTR0MEMOBJNETBSD pMemNetBSD = (PRTR0MEMOBJNETBSD)rtR0MemObjNew(sizeof(*pMemNetBSD), RTR0MEMOBJTYPE_RES_VIRT, NULL, cb, NULL); 417 PRTR0MEMOBJNETBSD pMemNetBSD = (PRTR0MEMOBJNETBSD)rtR0MemObjNew(sizeof(*pMemNetBSD), RTR0MEMOBJTYPE_RES_VIRT, 418 NULL, cb, pszTag); 416 419 if (!pMemNetBSD) 417 420 return VERR_NO_MEMORY; … … 432 435 433 436 434 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, RTR0PROCESS R0Process) 435 { 437 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, 438 RTR0PROCESS R0Process, const char *pszTag) 439 { 440 RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process, pszTag); 436 441 printf("NativeReserveUser\n"); 437 442 return VERR_NOT_SUPPORTED; -
trunk/src/VBox/Runtime/r0drv/nt/memobj-r0drv-nt.cpp
r91479 r91480 717 717 718 718 719 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy) 719 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, 720 const char *pszTag) 720 721 { 721 722 AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE || uCachePolicy == RTMEM_CACHE_POLICY_MMIO, VERR_NOT_SUPPORTED); … … 731 732 * Create the IPRT memory object. 732 733 */ 733 PRTR0MEMOBJNT pMemNt = (PRTR0MEMOBJNT)rtR0MemObjNew(sizeof(*pMemNt), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);734 PRTR0MEMOBJNT pMemNt = (PRTR0MEMOBJNT)rtR0MemObjNew(sizeof(*pMemNt), RTR0MEMOBJTYPE_PHYS, NULL, cb, pszTag); 734 735 if (pMemNt) 735 736 { … … 881 882 882 883 883 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment) 884 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, 885 const char *pszTag) 884 886 { 885 887 /* 886 888 * MmCreateSection(SEC_RESERVE) + MmMapViewInSystemSpace perhaps? 887 */ 888 RT_NOREF4(ppMem, pvFixed, cb, uAlignment); 889 * Or MmAllocateMappingAddress? 890 */ 891 RT_NOREF(ppMem, pvFixed, cb, uAlignment, pszTag); 889 892 return VERR_NOT_SUPPORTED; 890 893 } … … 892 895 893 896 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, 894 RTR0PROCESS R0Process )897 RTR0PROCESS R0Process, const char *pszTag) 895 898 { 896 899 /* 897 900 * ZeCreateSection(SEC_RESERVE) + ZwMapViewOfSection perhaps? 898 901 */ 899 RT_NOREF 5(ppMem, R3PtrFixed, cb, uAlignment, R0Process);902 RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process, pszTag); 900 903 return VERR_NOT_SUPPORTED; 901 904 } -
trunk/src/VBox/Runtime/r0drv/os2/memobj-r0drv-os2.cpp
r91479 r91480 264 264 265 265 266 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy) 266 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, 267 const char *pszTag) 267 268 { 268 269 AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED); 269 270 270 271 /* create the object. */ 271 PRTR0MEMOBJOS2 pMemOs2 = (PRTR0MEMOBJOS2)rtR0MemObjNew(RT_UOFFSETOF(RTR0MEMOBJOS2, Lock), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL); 272 PRTR0MEMOBJOS2 pMemOs2 = (PRTR0MEMOBJOS2)rtR0MemObjNew(RT_UOFFSETOF(RTR0MEMOBJOS2, Lock), RTR0MEMOBJTYPE_PHYS, 273 NULL, cb, pszTag); 272 274 if (!pMemOs2) 273 275 return VERR_NO_MEMORY; … … 337 339 338 340 339 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment) 340 { 341 RT_NOREF(ppMem, pvFixed, cb, uAlignment); 341 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, 342 const char *pszTag) 343 { 344 RT_NOREF(ppMem, pvFixed, cb, uAlignment, pszTag); 342 345 return VERR_NOT_SUPPORTED; 343 346 } … … 345 348 346 349 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, 347 RTR0PROCESS R0Process )348 { 349 RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process );350 RTR0PROCESS R0Process, const char *pszTag) 351 { 352 RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process, pszTag); 350 353 return VERR_NOT_SUPPORTED; 351 354 } -
trunk/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.c
r91479 r91480 836 836 837 837 838 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy) 838 DECLHIDDEN(int) rtR0MemObjNativeEnterPhys(PPRTR0MEMOBJINTERNAL ppMem, RTHCPHYS Phys, size_t cb, uint32_t uCachePolicy, 839 const char *pszTag) 839 840 { 840 841 AssertReturn(uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE, VERR_NOT_SUPPORTED); 841 842 842 843 /* Create the object. */ 843 PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_PHYS, NULL, cb, NULL);844 PRTR0MEMOBJSOL pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_PHYS, NULL, cb, pszTag); 844 845 if (!pMemSolaris) 845 846 return VERR_NO_MEMORY; … … 919 920 920 921 921 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment) 922 DECLHIDDEN(int) rtR0MemObjNativeReserveKernel(PPRTR0MEMOBJINTERNAL ppMem, void *pvFixed, size_t cb, size_t uAlignment, 923 const char *pszTag) 922 924 { 923 925 PRTR0MEMOBJSOL pMemSolaris; … … 932 934 933 935 /* Create the object. */ 934 pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_RES_VIRT, pv, cb, NULL);936 pMemSolaris = (PRTR0MEMOBJSOL)rtR0MemObjNew(sizeof(*pMemSolaris), RTR0MEMOBJTYPE_RES_VIRT, pv, cb, pszTag); 935 937 if (!pMemSolaris) 936 938 { … … 947 949 948 950 DECLHIDDEN(int) rtR0MemObjNativeReserveUser(PPRTR0MEMOBJINTERNAL ppMem, RTR3PTR R3PtrFixed, size_t cb, size_t uAlignment, 949 RTR0PROCESS R0Process) 950 { 951 RTR0PROCESS R0Process, const char *pszTag) 952 { 953 RT_NOREF(ppMem, R3PtrFixed, cb, uAlignment, R0Process, pszTag); 951 954 return VERR_NOT_SUPPORTED; 952 955 }
Note:
See TracChangeset
for help on using the changeset viewer.