Changeset 9088 in vbox for trunk/src/VBox
- Timestamp:
- May 23, 2008 2:13:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevRTC.cpp
r8155 r9088 105 105 106 106 /** @todo Replace struct my_tm with RTTIME. */ 107 struct my_tm 107 struct my_tm 108 108 { 109 109 int32_t tm_sec; … … 235 235 s->cmos_data[RTC_REG_A] &= ~REG_A_UIP; 236 236 #if 0 /* This is probably wrong as it breaks changing the time/date in OS/2. */ 237 data &= ~REG_B_UIE; 238 #endif 237 data &= ~REG_B_UIE; 238 #endif 239 239 } else { 240 240 /* if disabling set mode, update the time */ … … 383 383 s->cmos_data[RTC_REG_A] |= REG_A_UIP; 384 384 } 385 #if 0 /* old: winds up waiting for 10ms... */ 385 386 /* should be 244 us = 8 / 32768 seconds, but currently the 386 387 timers do not have the necessary resolution. */ … … 388 389 if (delay < 1) 389 390 delay = 1; 391 #else 392 /* 244140 ns = 8 / 32768 seconds */ 393 delay = TMTimerFromNano(s->CTXSUFF(pSecondTimer2), 244140); 394 #endif 390 395 TMTimerSet(s->CTXSUFF(pSecondTimer2), s->next_second_time + delay); 391 396 }
Note:
See TracChangeset
for help on using the changeset viewer.