Changeset 45208 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Mar 27, 2013 1:03:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevRTC.cpp
r45191 r45208 185 185 /** The current/previous hinted timer period. */ 186 186 int32_t CurHintPeriod; 187 uint32_t u32AlignmentPadding; 187 /** How many consecutive times the UIP has been seen. */ 188 int32_t cUipSeen; 188 189 189 190 /** HPET legacy mode notification interface. */ … … 315 316 316 317 case RTC_REG_A: 318 if (pThis->cmos_data[RTC_REG_A] & REG_A_UIP) 319 ++pThis->cUipSeen; 320 else 321 pThis->cUipSeen = 0; 322 if (pThis->cUipSeen >= 250) 323 { 324 pThis->cmos_data[pThis->cmos_index[0]] &= ~REG_A_UIP; 325 pThis->cUipSeen = 0; 326 } 317 327 *pu32 = pThis->cmos_data[pThis->cmos_index[0]]; 318 328 break;
Note:
See TracChangeset
for help on using the changeset viewer.