VirtualBox

Changeset 4133 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Aug 13, 2007 4:14:58 PM (17 years ago)
Author:
vboxsync
Message:

grr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c

    r4132 r4133  
    657657                ||  (pIn->u32MinVersion & 0xffff0000) != (SUPDRVIOC_VERSION & 0xffff0000))
    658658            {
    659                 OSDBGPRINT(("SUP_IOCTL_COOKIE: Version mismatch. Requested: %#x  Min: %#x  Current: %#x\n", 
     659                OSDBGPRINT(("SUP_IOCTL_COOKIE: Version mismatch. Requested: %#x  Min: %#x  Current: %#x\n",
    660660                            pIn->u32ReqVersion, pIn->u32MinVersion, SUPDRVIOC_VERSION));
    661661                pOut->u32Cookie         = 0xffffffff;
     
    671671            /*
    672672             * Fill in return data and be gone.
    673              * N.B. The first one to change SUPDRVIOC_VERSION shall makes sure that 
     673             * N.B. The first one to change SUPDRVIOC_VERSION shall makes sure that
    674674             *      u32SessionVersion <= u32ReqVersion!
    675675             */
     
    678678            pOut->u32SessionCookie  = pSession->u32Cookie;
    679679            pOut->u32SessionVersion = SUPDRVIOC_VERSION;
    680             pOut->u32DriverVersion  = SUPDRVIOC_VERSION; 
     680            pOut->u32DriverVersion  = SUPDRVIOC_VERSION;
    681681            pOut->pSession          = pSession;
    682682            pOut->cFunctions        = sizeof(g_aFunctions) / sizeof(g_aFunctions[0]);
     
    23392339#else
    23402340    dprintf(("SUPR0GipMap: returns %d *pHCPhysGid=%lx *ppGipR3=%p\n", rc, (unsigned long)HCPhys, (void *)(uintptr_t)pGip));
    2341 #endif 
     2341#endif
    23422342    return rc;
    23432343}
     
    23572357    PSUPDRVDEVEXT           pDevExt = pSession->pDevExt;
    23582358#ifdef DEBUG_DARWIN_GIP
    2359     OSDBGPRINT(("SUPR0GipUnmap: pSession=%p pGip=%p GipMapObjR3=%p\n", 
    2360                 pSession, 
    2361                 pSession->GipMapObjR3 != NIL_RTR0MEMOBJ ? RTR0MemObjAddress(pSession->GipMapObjR3) : NULL, 
     2359    OSDBGPRINT(("SUPR0GipUnmap: pSession=%p pGip=%p GipMapObjR3=%p\n",
     2360                pSession,
     2361                pSession->GipMapObjR3 != NIL_RTR0MEMOBJ ? RTR0MemObjAddress(pSession->GipMapObjR3) : NULL,
    23622362                pSession->GipMapObjR3));
    23632363#else
    23642364    dprintf(("SUPR0GipUnmap: pSession=%p\n", pSession));
    2365 #endif 
     2365#endif
    23662366
    23672367    RTSemFastMutexRequest(pDevExt->mtxGip);
     
    38973897        AssertRC(rc2);
    38983898    }
     3899    return rc;
    38993900#else
    39003901    RTHCPHYS HCPhys;
     
    39203921 */
    39213922void VBOXCALL supdrvOSLowFreeOne(PSUPDRVMEMREF pMem)
    3922 {                               
     3923{
    39233924# if defined(USB_NEW_OS_INTERFACE_FOR_LOW)
    39243925    if (pMem->u.iprt.MapObjR3)
     
    40264027    int rc;
    40274028#ifdef DEBUG_DARWIN_GIP
    4028     OSDBGPRINT(("supdrvGipDestroy: pDevExt=%p pGip=%p pGipTimer=%p GipMemObj=%p\n", pDevExt, 
    4029                 pDevExt->GipMemObj != NIL_RTR0MEMOBJ ? RTR0MemObjAddress(pDevExt->GipMemObj) : NULL, 
     4029    OSDBGPRINT(("supdrvGipDestroy: pDevExt=%p pGip=%p pGipTimer=%p GipMemObj=%p\n", pDevExt,
     4030                pDevExt->GipMemObj != NIL_RTR0MEMOBJ ? RTR0MemObjAddress(pDevExt->GipMemObj) : NULL,
    40304031                pDevExt->pGipTimer, pDevExt->GipMemObj));
    40314032#endif
     
    41544155    /*
    41554156     * The problem here is that AMD processors with power management features
    4156      * may easily end up with different TSCs because the CPUs or even cores 
     4157     * may easily end up with different TSCs because the CPUs or even cores
    41574158     * on the same physical chip run at different frequencies to save power.
    41584159     *
    4159      * It is rumoured that this will be corrected with Barcelona and it's 
    4160      * expected that this will be indicated by the TscInvariant bit in 
    4161      * cpuid(0x80000007). So, the "difficult" bit here is to correctly 
     4160     * It is rumoured that this will be corrected with Barcelona and it's
     4161     * expected that this will be indicated by the TscInvariant bit in
     4162     * cpuid(0x80000007). So, the "difficult" bit here is to correctly
    41624163     * identify the older CPUs which don't do different frequency and
    41634164     * can be relied upon to have somewhat uniform TSC between the cpus.
     
    41704171        if (supdrvOSGetForcedAsyncTscMode())
    41714172            return SUPGIPMODE_ASYNC_TSC;
    4172    
     4173
    41734174        /* Check for "AuthenticAMD" */
    41744175        ASMCpuId(0, &uEAX, &uEBX, &uECX, &uEDX);
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