VirtualBox

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


Ignore:
Timestamp:
Jul 2, 2012 12:23:44 PM (12 years ago)
Author:
vboxsync
Message:

DevHPET: parfait hint

File:
1 edited

Legend:

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

    r40280 r41983  
    443443    Assert(PDMCritSectIsOwner(&pThis->csLock));
    444444
    445     if (iTimerNo >= HPET_CAP_GET_TIMERS(pThis->u32Capabilities))
     445    if (   iTimerNo >= RT_ELEMENTS(pThis->aTimers) /* parfait */
     446        || iTimerNo >= HPET_CAP_GET_TIMERS(pThis->u32Capabilities))
    446447    {
    447448        static unsigned s_cOccurences = 0;
     
    511512    Assert(!PDMCritSectIsOwner(&pThis->csLock) || TMTimerIsLockOwner(pThis->aTimers[0].CTX_SUFF(pTimer)));
    512513
    513     if (iTimerNo >= HPET_CAP_GET_TIMERS(pThis->u32Capabilities))
     514    if (   iTimerNo >= RT_ELEMENTS(pThis->aTimers) /* parfait */
     515        || iTimerNo >= HPET_CAP_GET_TIMERS(pThis->u32Capabilities))
    514516    {
    515517        static unsigned s_cOccurences = 0;
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