VirtualBox

Changeset 45208 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Mar 27, 2013 1:03:13 PM (12 years ago)
Author:
vboxsync
Message:

RTC: Experimental hack for UIP bit being set too long.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevRTC.cpp

    r45191 r45208  
    185185    /** The current/previous hinted timer period. */
    186186    int32_t CurHintPeriod;
    187     uint32_t u32AlignmentPadding;
     187    /** How many consecutive times the UIP has been seen. */
     188    int32_t cUipSeen;
    188189
    189190    /** HPET legacy mode notification interface. */
     
    315316
    316317            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                }
    317327                *pu32 = pThis->cmos_data[pThis->cmos_index[0]];
    318328                break;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette