- Timestamp:
- Jan 22, 2009 10:21:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevPit-i8254.cpp
r16148 r16158 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; … … 1102 1106 #endif /* IN_RING3 */ 1103 1107 #endif /* !VBOX_DEVICE_STRUCT_TESTCASE */ 1104
Note:
See TracChangeset
for help on using the changeset viewer.