VirtualBox

Changeset 9498

Show
Ignore:
Timestamp:
06/07/08 04:32:46 (6 months ago)
Author:
vboxsync
Message:

added supdrvOSGetForcedAsyncTscMode.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r8155 r9498  
    3333*   Header Files                                                               * 
    3434*******************************************************************************/ 
    35 /*  
     35/* 
    3636 * Deal with conflicts first. 
    3737 * PVM - BSD mess, that FreeBSD has correct a long time ago. 
     
    493493        if (RT_UNLIKELY((pHdr->fFlags & SUPREQHDR_FLAGS_MAGIC_MASK) != SUPREQHDR_FLAGS_MAGIC)) 
    494494        { 
    495             OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: bad magic fFlags=%#x; iCmd=%#lx\n", pHdr->fFlags, iCmd));  
     495            OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: bad magic fFlags=%#x; iCmd=%#lx\n", pHdr->fFlags, iCmd)); 
    496496            return EINVAL; 
    497497        } 
     
    506506    else if ((IOC_DIRMASK & iCmd) == IOC_VOID && !cbReq) 
    507507    { 
    508         /*  
     508        /* 
    509509         * Get the header and figure out how much we're gonna have to read. 
    510          */  
     510         */ 
    511511        SUPREQHDR Hdr; 
    512512        pUser = (user_addr_t)*(void **)pData; 
     
    519519        if (RT_UNLIKELY((Hdr.fFlags & SUPREQHDR_FLAGS_MAGIC_MASK) != SUPREQHDR_FLAGS_MAGIC)) 
    520520        { 
    521             OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: bad magic fFlags=%#x; iCmd=%#lx\n", Hdr.fFlags, iCmd));  
     521            OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: bad magic fFlags=%#x; iCmd=%#lx\n", Hdr.fFlags, iCmd)); 
    522522            return EINVAL; 
    523523        } 
     
    545545        if (RT_UNLIKELY(rc)) 
    546546        { 
    547             OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: copyin(%llx,%p,%#x) -> %#x; iCmd=%#lx\n",  
     547            OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: copyin(%llx,%p,%#x) -> %#x; iCmd=%#lx\n", 
    548548                        (unsigned long long)pUser, pHdr, Hdr.cbIn, rc, iCmd)); 
    549549            if (pvPageBuf) 
     
    579579            rc = copyout(pHdr, pUser, cbOut); 
    580580            if (RT_UNLIKELY(rc)) 
    581                 OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: copyout(%p,%llx,%#x) -> %d; uCmd=%#lx!\n",  
     581                OSDBGPRINT(("VBoxDrvDarwinIOCtlSlow: copyout(%p,%llx,%#x) -> %d; uCmd=%#lx!\n", 
    582582                            pHdr, (unsigned long long)pUser, cbOut, rc, iCmd)); 
    583583 
     
    591591    else 
    592592    { 
    593         /*  
     593        /* 
    594594         * The request failed, just clean up. 
    595595         */ 
     
    639639    NOREF(pszObjName); 
    640640    NOREF(prc); 
     641    return false; 
     642} 
     643 
     644 
     645bool VBOXCALL   supdrvOSGetForcedAsyncTscMode(PSUPDRVDEVEXT pDevExt) 
     646{ 
     647    NOREF(pDevExt); 
    641648    return false; 
    642649} 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy