Changeset 16148 in vbox
- Timestamp:
- Jan 21, 2009 4:22:30 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/Devices/PC/DevPit-i8254.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPit-i8254.cpp
r16146 r16148 178 178 { 179 179 if (s->u64NextTS == UINT64_MAX) 180 { 181 d = ASMMultU64ByU32DivByU32(TMTimerGet(pTimer) - s->count_load_time, PIT_FREQ, TMTimerGetFreq(pTimer)); 182 return s->count - (d % s->count); /** @todo check this value. */ 183 } 180 return 1; /** @todo check this value. */ 184 181 d = TMTimerGet(pTimer); 185 182 d = ASMMultU64ByU32DivByU32(d - s->u64ReloadTS, s->count, s->u64NextTS - s->u64ReloadTS); 186 183 if (d >= s->count) 187 184 return 1; 188 return s->count - d;185 return s->count - d; 189 186 } 190 187 d = ASMMultU64ByU32DivByU32(TMTimerGet(pTimer) - s->count_load_time, PIT_FREQ, TMTimerGetFreq(pTimer)); … … 869 866 s->bcd = 0; 870 867 #endif 871 s->u64NextTS = UINT64_MAX;872 868 s->cRelLogEntries = 0; 873 869 s->mode = 3;
Note:
See TracChangeset
for help on using the changeset viewer.

