Changeset 32919 in vbox for trunk/src/VBox/Runtime/r0drv/solaris
- Timestamp:
- Oct 5, 2010 1:41:35 PM (14 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv/solaris/vbi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/vbi/i86pc/os/vbi.c
r30378 r32919 1303 1303 /* 1304 1304 * get pages from kseg, the 'virtAddr' here is only for colouring but unforuntately 1305 * we don t'have the 'virtAddr' to which this memory may be mapped.1305 * we don't have the 'virtAddr' to which this memory may be mapped. 1306 1306 */ 1307 1307 seg_t kernseg; -
trunk/src/VBox/Runtime/r0drv/solaris/vbi/memobj-r0drv-solaris.c
r32348 r32919 179 179 uint64_t physAddr = PhysHighest; 180 180 181 # if 0181 # if 0 182 182 /* 183 183 * The contig_alloc() way of allocating NC pages is broken or does not match our semantics. Refer #4716 for details. 184 184 */ 185 # if 0185 # if 0 186 186 /* caddr_t virtAddr = vbi_phys_alloc(&physAddr, cb, PAGE_SIZE, 0 /* non-contiguous */); 187 # endif187 # endif 188 188 caddr_t virtAddr = ddi_umem_alloc(cb, DDI_UMEM_SLEEP, &pMemSolaris->Cookie); 189 189 if (RT_UNLIKELY(virtAddr == NULL)) … … 196 196 pMemSolaris->Core.u.Phys.fAllocated = true; 197 197 pMemSolaris->pvHandle = NULL; 198 # else198 # else 199 199 void *pvPages = vbi_pages_alloc(&physAddr, cb); 200 200 if (!pvPages) … … 208 208 pMemSolaris->Core.u.Phys.fAllocated = false; 209 209 pMemSolaris->pvHandle = pvPages; 210 # endif210 # endif 211 211 212 212 Assert(!(physAddr & PAGE_OFFSET_MASK)); … … 456 456 return VERR_MAP_FAILED; 457 457 } 458 else459 rc = VINF_SUCCESS;460 458 461 459 pMemSolaris->Core.u.Mapping.R0Process = (RTR0PROCESS)vbi_proc(); … … 463 461 *ppMem = &pMemSolaris->Core; 464 462 kmem_free(paPhysAddrs, sizeof(uint64_t) * cPages); 465 return rc;463 return VINF_SUCCESS; 466 464 } 467 465
Note:
See TracChangeset
for help on using the changeset viewer.