VirtualBox

Changeset 61715 in vbox


Ignore:
Timestamp:
Jun 15, 2016 1:18:40 PM (9 years ago)
Author:
vboxsync
Message:

DevAPIC: Don't assert while dumping debugger info when not on EMT, assume EMT0 for now.

File:
1 edited

Legend:

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

    r60813 r61715  
    20672067    uint64_t u64;
    20682068
    2069     pHlp->pfnPrintf(pHlp, "Local APIC at %08llx:\n", pApic->apicbase);
     2069    pHlp->pfnPrintf(pHlp, "CPU%u: Local APIC at %08llx:\n", pApic->phys_id, pApic->apicbase);
    20702070    u64 = apicR3InfoReadReg(pDev, pApic, 0x2);
    20712071    pHlp->pfnPrintf(pHlp, "  LAPIC ID  : %08llx\n", u64);
     
    21672167{
    21682168    APICDeviceInfo  *pDev  = PDMINS_2_DATA(pDevIns, APICDeviceInfo *);
    2169     APICState       *pApic = apicGetStateByCurEmt(pDev);
     2169    PVM              pVM   = PDMDevHlpGetVM(pDevIns);
     2170    VMCPUID          idCpu = VMMGetCpuId(pVM);
     2171    if (idCpu == NIL_VMCPUID)  /* Don't crash if we're not on EMT, just assume EMT0 for now. */
     2172        idCpu = 0;
     2173    APICState       *pApic = apicGetStateById(pDev, idCpu);
    21702174
    21712175    if (pszArgs == NULL || !*pszArgs || !strcmp(pszArgs, "basic"))
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