Changeset 97027 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Oct 6, 2022 9:44:06 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 153962
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevHPET.cpp
r96407 r97027 102 102 103 103 /** 104 * Femtoseconds in a day. Still fits within int64_t.105 */ 106 #define FS_PER_DAY (1000000 LL * 60 * 60 * 24 * FS_PER_NS)104 * Femtoseconds in a day. Still fits within uint64_t. 105 */ 106 #define FS_PER_DAY (1000000000ULL * 60 * 60 * 24 * FS_PER_NS) 107 107 108 108 /** … … 465 465 uint64_t fConfig, uint64_t uPeriod) 466 466 { 467 if ( fConfig & HPET_TN_PERIODIC)467 if ((fConfig & HPET_TN_PERIODIC) && uPeriod && (uPeriod < UINT32_MAX)) 468 468 { 469 469 uint64_t const nsPeriod = hpetTicksToNs(pThis, uPeriod); … … 641 641 642 642 case HPET_TN_CMP: 643 u64Value = ASMAtomicReadU64(&pHpetTimer->u64C onfig);643 u64Value = ASMAtomicReadU64(&pHpetTimer->u64Cmp); 644 644 Log(("HPET[%u]: read64 HPET_TN_CMP: %#RX64\n", iTimerNo, u64Value)); 645 645 break; … … 815 815 816 816 /** 817 * 32-bit write to a HPET timer register.817 * 64-bit write to a HPET timer register. 818 818 * 819 819 * @returns Strict VBox status code.
Note:
See TracChangeset
for help on using the changeset viewer.