VirtualBox

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


Ignore:
Timestamp:
May 26, 2009 1:33:46 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47772
Message:

DevAPIC.cpp: Made apic_timer select the right instance. Fixed the assertion in TMAll.cpp.

File:
1 edited

Legend:

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

    r20037 r20039  
    13181318    APICDeviceInfo *dev = PDMINS_2_DATA(pDevIns, APICDeviceInfo *);
    13191319    APICState *s = getLapic(dev);
     1320    if (s->pTimerR3 != pTimer)
     1321    {
     1322        for (uint32_t iCpu = 0; iCpu < dev->cCpus; iCpu++)
     1323        {
     1324            s = getLapicById(dev, iCpu);
     1325            if (s->pTimerR3 == pTimer)
     1326                break;
     1327        }
     1328        Assert(s->pTimerR3 == pTimer);
     1329    }
    13201330
    13211331    APIC_LOCK_VOID(dev, VERR_INTERNAL_ERROR);
Note: See TracChangeset for help on using the changeset viewer.

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