Changeset 53468 in vbox for trunk/src/VBox/HostDrivers/Support/SUPDrv.c
- Timestamp:
- Dec 6, 2014 3:29:16 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPDrv.c
r53464 r53468 6400 6400 return VINF_SUCCESS; 6401 6401 } 6402 else 6403 { 6404 OSDBGPRINT(("supdrvGipCreate: failed create GIP timer at %u ns interval. rc=%Rrc\n", u32Interval, rc)); 6405 Assert(!pDevExt->pGipTimer); 6406 } 6402 6403 OSDBGPRINT(("supdrvGipCreate: failed create GIP timer at %u ns interval. rc=%Rrc\n", u32Interval, rc)); 6404 Assert(!pDevExt->pGipTimer); 6407 6405 } 6408 6406 else … … 7941 7939 return VINF_SUCCESS; 7942 7940 } 7943 else 7944 { 7945 /* If we failed to have a TSC-delta, measurement the TSC-delta and retry. */ 7946 int rc2; 7947 uint16_t iCpu; 7948 AssertMsgReturn(idApic < RT_ELEMENTS(pGip->aiCpuFromApicId), 7949 ("idApic=%u ArraySize=%u\n", idApic, RT_ELEMENTS(pGip->aiCpuFromApicId)), VERR_INVALID_CPU_INDEX); 7950 iCpu = pGip->aiCpuFromApicId[idApic]; 7951 AssertMsgReturn(iCpu < pGip->cCpus, ("iCpu=%u cCpus=%u\n", iCpu, pGip->cCpus), VERR_INVALID_CPU_INDEX); 7952 7953 Assert(GIP_ARE_TSC_DELTAS_APPLICABLE(pDevExt)); 7954 rc2 = supdrvMeasureTscDeltaOne(pDevExt, iCpu); 7955 if (RT_SUCCESS(rc2)) 7956 AssertReturn(pGip->aCPUs[iCpu].i64TSCDelta != INT64_MAX, VERR_INTERNAL_ERROR_2); 7957 } 7941 7942 /* If we failed to have a TSC-delta, measurement the TSC-delta and retry. */ 7943 int rc2; 7944 uint16_t iCpu; 7945 AssertMsgReturn(idApic < RT_ELEMENTS(pGip->aiCpuFromApicId), 7946 ("idApic=%u ArraySize=%u\n", idApic, RT_ELEMENTS(pGip->aiCpuFromApicId)), VERR_INVALID_CPU_INDEX); 7947 iCpu = pGip->aiCpuFromApicId[idApic]; 7948 AssertMsgReturn(iCpu < pGip->cCpus, ("iCpu=%u cCpus=%u\n", iCpu, pGip->cCpus), VERR_INVALID_CPU_INDEX); 7949 7950 Assert(GIP_ARE_TSC_DELTAS_APPLICABLE(pDevExt)); 7951 rc2 = supdrvMeasureTscDeltaOne(pDevExt, iCpu); 7952 if (RT_SUCCESS(rc2)) 7953 AssertReturn(pGip->aCPUs[iCpu].i64TSCDelta != INT64_MAX, VERR_INTERNAL_ERROR_2); 7958 7954 } 7959 7955
Note:
See TracChangeset
for help on using the changeset viewer.