VirtualBox

Ignore:
Timestamp:
Oct 5, 2010 1:41:35 PM (14 years ago)
Author:
vboxsync
Message:

nits

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  
    13031303                                /*
    13041304                                 * get pages from kseg, the 'virtAddr' here is only for colouring but unforuntately
    1305                                  * we dont' have the 'virtAddr' to which this memory may be mapped.
     1305                                 * we don't have the 'virtAddr' to which this memory may be mapped.
    13061306                                 */
    13071307                                seg_t kernseg;
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/memobj-r0drv-solaris.c

    r32348 r32919  
    179179    uint64_t physAddr = PhysHighest;
    180180
    181 #if 0
     181# if 0
    182182    /*
    183183     * The contig_alloc() way of allocating NC pages is broken or does not match our semantics. Refer #4716 for details.
    184184     */
    185 #if 0
     185#  if 0
    186186    /* caddr_t virtAddr  = vbi_phys_alloc(&physAddr, cb, PAGE_SIZE, 0 /* non-contiguous */);
    187 #endif
     187#  endif
    188188    caddr_t virtAddr = ddi_umem_alloc(cb, DDI_UMEM_SLEEP, &pMemSolaris->Cookie);
    189189    if (RT_UNLIKELY(virtAddr == NULL))
     
    196196    pMemSolaris->Core.u.Phys.fAllocated = true;
    197197    pMemSolaris->pvHandle = NULL;
    198 #else
     198# else
    199199    void *pvPages = vbi_pages_alloc(&physAddr, cb);
    200200    if (!pvPages)
     
    208208    pMemSolaris->Core.u.Phys.fAllocated = false;
    209209    pMemSolaris->pvHandle = pvPages;
    210 #endif
     210# endif
    211211
    212212    Assert(!(physAddr & PAGE_OFFSET_MASK));
     
    456456        return VERR_MAP_FAILED;
    457457    }
    458     else
    459         rc = VINF_SUCCESS;
    460458
    461459    pMemSolaris->Core.u.Mapping.R0Process = (RTR0PROCESS)vbi_proc();
     
    463461    *ppMem = &pMemSolaris->Core;
    464462    kmem_free(paPhysAddrs, sizeof(uint64_t) * cPages);
    465     return rc;
     463    return VINF_SUCCESS;
    466464}
    467465
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette