Changeset 2851 in vbox for trunk/src/VBox
- Timestamp:
- May 24, 2007 6:02:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevRTC.cpp
r2850 r2851 139 139 /** The RTC device helpers. */ 140 140 HCPTRTYPE(PCPDMRTCHLP) pRtcHlpHC; 141 /** Number of release log entries. Used to prevent floading. */ 142 uint32_t cRelLogEntries; 143 uint32_t alignment; 141 144 }; 142 145 … … 166 169 TMTimerSet(s->CTXSUFF(pPeriodicTimer), s->next_periodic_time); 167 170 171 if (s->cRelLogEntries++ < 64) 172 LogRel(("RTC: period=%#x (%d) %u Hz\n", period, period, _32K / period)); 168 173 } else { 169 174 TMTimerStop(s->CTXSUFF(pPeriodicTimer)); 175 if (s->cRelLogEntries++ < 64) 176 LogRel(("RTC: stopped the periodic timer\n")); 170 177 } 171 178 } … … 476 483 qemu_put_timer(f, s->CTXSUFF(pSecondTimer)); 477 484 qemu_put_timer(f, s->CTXSUFF(pSecondTimer2)); 485 478 486 } 479 487 … … 503 511 qemu_get_timer(f, s->CTXSUFF(pSecondTimer)); 504 512 qemu_get_timer(f, s->CTXSUFF(pSecondTimer2)); 513 514 int period_code = s->cmos_data[RTC_REG_A] & 0x0f; 515 if ( period_code != 0 516 && (s->cmos_data[RTC_REG_B] & REG_B_PIE)) { 517 if (period_code <= 2) 518 period_code += 7; 519 int period = 1 << (period_code - 1); 520 LogRel(("RTC: period=%#x (%d) %u Hz (restore)\n", period, period, _32K / period)); 521 } else { 522 LogRel(("RTC: stopped the periodic timer (restore)\n")); 523 } 524 s->cRelLogEntries = 0; 505 525 return 0; 506 526 }
Note:
See TracChangeset
for help on using the changeset viewer.