Changeset 4133 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Aug 13, 2007 4:14:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDRVShared.c
r4132 r4133 657 657 || (pIn->u32MinVersion & 0xffff0000) != (SUPDRVIOC_VERSION & 0xffff0000)) 658 658 { 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", 660 660 pIn->u32ReqVersion, pIn->u32MinVersion, SUPDRVIOC_VERSION)); 661 661 pOut->u32Cookie = 0xffffffff; … … 671 671 /* 672 672 * 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 674 674 * u32SessionVersion <= u32ReqVersion! 675 675 */ … … 678 678 pOut->u32SessionCookie = pSession->u32Cookie; 679 679 pOut->u32SessionVersion = SUPDRVIOC_VERSION; 680 pOut->u32DriverVersion = SUPDRVIOC_VERSION; 680 pOut->u32DriverVersion = SUPDRVIOC_VERSION; 681 681 pOut->pSession = pSession; 682 682 pOut->cFunctions = sizeof(g_aFunctions) / sizeof(g_aFunctions[0]); … … 2339 2339 #else 2340 2340 dprintf(("SUPR0GipMap: returns %d *pHCPhysGid=%lx *ppGipR3=%p\n", rc, (unsigned long)HCPhys, (void *)(uintptr_t)pGip)); 2341 #endif 2341 #endif 2342 2342 return rc; 2343 2343 } … … 2357 2357 PSUPDRVDEVEXT pDevExt = pSession->pDevExt; 2358 2358 #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, 2362 2362 pSession->GipMapObjR3)); 2363 2363 #else 2364 2364 dprintf(("SUPR0GipUnmap: pSession=%p\n", pSession)); 2365 #endif 2365 #endif 2366 2366 2367 2367 RTSemFastMutexRequest(pDevExt->mtxGip); … … 3897 3897 AssertRC(rc2); 3898 3898 } 3899 return rc; 3899 3900 #else 3900 3901 RTHCPHYS HCPhys; … … 3920 3921 */ 3921 3922 void VBOXCALL supdrvOSLowFreeOne(PSUPDRVMEMREF pMem) 3922 { 3923 { 3923 3924 # if defined(USB_NEW_OS_INTERFACE_FOR_LOW) 3924 3925 if (pMem->u.iprt.MapObjR3) … … 4026 4027 int rc; 4027 4028 #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, 4030 4031 pDevExt->pGipTimer, pDevExt->GipMemObj)); 4031 4032 #endif … … 4154 4155 /* 4155 4156 * 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 4157 4158 * on the same physical chip run at different frequencies to save power. 4158 4159 * 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 4162 4163 * identify the older CPUs which don't do different frequency and 4163 4164 * can be relied upon to have somewhat uniform TSC between the cpus. … … 4170 4171 if (supdrvOSGetForcedAsyncTscMode()) 4171 4172 return SUPGIPMODE_ASYNC_TSC; 4172 4173 4173 4174 /* Check for "AuthenticAMD" */ 4174 4175 ASMCpuId(0, &uEAX, &uEBX, &uECX, &uEDX);
Note:
See TracChangeset
for help on using the changeset viewer.