Changeset 27414 in vbox
- Timestamp:
- Mar 16, 2010 4:14:52 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/vbi/memobj-r0drv-solaris.c
r27373 r27414 81 81 82 82 case RTR0MEMOBJTYPE_PHYS_NC: 83 LogRel(("MemObjNativeFree virtAddr=%p physAddr=%#x cb=%u\n", pMemSolaris->Core.pv, vbi_va_to_pa(pMemSolaris->Core.pv), (unsigned)pMemSolaris->Core.cb));84 83 #if 0 85 84 vbi_phys_free(pMemSolaris->Core.pv, pMemSolaris->Core.cb); 86 #e lse85 #endif 87 86 ddi_umem_free(pMemSolaris->Cookie); 88 #endif89 87 break; 90 88 … … 180 178 /* Allocate physically non-contiguous page-aligned memory. */ 181 179 uint64_t physAddr = PhysHighest; 180 182 181 #if 0 182 /* 183 * The contig_alloc() way of allocating NC pages is broken or does not match our semantics. Refer #4716 for details. 184 */ 183 185 caddr_t virtAddr = vbi_phys_alloc(&physAddr, cb, PAGE_SIZE, 0 /* non-contiguous */); 184 #e lse186 #endif 185 187 caddr_t virtAddr = ddi_umem_alloc(cb, DDI_UMEM_SLEEP, &pMemSolaris->Cookie); 186 #endif187 188 if (RT_UNLIKELY(virtAddr == NULL)) 188 189 { … … 196 197 pMemSolaris->pvHandle = NULL; 197 198 *ppMem = &pMemSolaris->Core; 198 LogRel(("ddi_umem_alloc virtAddr=%p physAddr=%#x cb=%u\n", virtAddr, physAddr, (unsigned)cb));199 199 return VINF_SUCCESS; 200 200 #else
Note:
See TracChangeset
for help on using the changeset viewer.

