VirtualBox

Changeset 9088 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 23, 2008 2:13:13 PM (17 years ago)
Author:
vboxsync
Message:

Corrected the delay for the 2nd timer that clears UIP (among others thing) from 10ms to 244140ns. Hopefully this will help with the #2890 issue.

File:
1 edited

Legend:

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

    r8155 r9088  
    105105
    106106/** @todo Replace struct my_tm with RTTIME. */
    107 struct my_tm 
     107struct my_tm
    108108{
    109109    int32_t tm_sec;
     
    235235                s->cmos_data[RTC_REG_A] &= ~REG_A_UIP;
    236236#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
    239239            } else {
    240240                /* if disabling set mode, update the time */
     
    383383            s->cmos_data[RTC_REG_A] |= REG_A_UIP;
    384384        }
     385#if 0 /* old: winds up waiting for 10ms... */
    385386        /* should be 244 us = 8 / 32768 seconds, but currently the
    386387           timers do not have the necessary resolution. */
     
    388389        if (delay < 1)
    389390            delay = 1;
     391#else
     392        /* 244140 ns = 8 / 32768 seconds */
     393        delay = TMTimerFromNano(s->CTXSUFF(pSecondTimer2), 244140);
     394#endif
    390395        TMTimerSet(s->CTXSUFF(pSecondTimer2), s->next_second_time + delay);
    391396    }
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