VirtualBox

Changeset 8528 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
May 2, 2008 7:09:28 AM (17 years ago)
Author:
vboxsync
Message:

Remove unused code and spaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/memobj-r0drv-solaris.c

    r8527 r8528  
    8282
    8383
    84 
    8584static uint64_t rtR0MemObjSolarisVirtToPhys(struct hat* hatSpace, caddr_t virtAddr)
    8685{
     
    9392    }
    9493
    95     /* Both works, but second will work for non-page aligned virtAddr */
    96 #if 0
    97     uint64_t physAddr = PAGE_SIZE * pfn;
    98 #else
    9994    uint64_t physAddr = ((uint64_t)pfn << MMU_PAGESHIFT) | ((uintptr_t)virtAddr & MMU_PAGEOFFSET);
    100 #endif
    10195    return physAddr;
    10296}
     
    318312            pMemSolaris->ppShadowPages = ppl;
    319313            *ppMem = &pMemSolaris->Core;
    320             return VINF_SUCCESS;           
     314            return VINF_SUCCESS;
    321315        }
    322316
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