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