Changeset 37519 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jun 16, 2011 7:30:57 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r37466 r37519 221 221 uint16_t cCpus; 222 222 uint64_t u64PmTimerInitial; 223 uint64_t u64PmTimerLastSeen;224 223 PTMTIMERR3 pPmTimerR3; 225 224 PTMTIMERR0 pPmTimerR0; … … 1591 1590 uint64_t const u64PmTimerInitial = pThis->u64PmTimerInitial; 1592 1591 uint64_t u64Now = TMTimerGet(pThis->CTX_SUFF(pPmTimer)); 1593 1594 /*1595 * Make 100% sure time doesn't go backwards.1596 */1597 uint64_t u64Seen;1598 do1599 {1600 u64Seen = ASMAtomicReadU64(&pThis->u64PmTimerLastSeen);1601 if (u64Now < u64Seen)1602 {1603 #ifdef DEBUG1604 DBGFTRACE_PDM_U64_TAG(pDevIns, u64Now, "acpi bad");1605 # if 01606 RTTraceBufDisable(DBGFTRACE_PDM_TRACEBUF(pDevIns));1607 AssertFailed();1608 # endif1609 #endif1610 u64Now = u64Seen + 1;1611 }1612 } while (!ASMAtomicCmpXchgU64(&pThis->u64PmTimerLastSeen, u64Now, u64Seen));1613 1614 1592 TMTimerUnlock(pThis->CTX_SUFF(pPmTimer)); 1615 1593
Note:
See TracChangeset
for help on using the changeset viewer.