VirtualBox

Changeset 61815 in vbox


Ignore:
Timestamp:
Jun 22, 2016 1:05:44 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
108218
Message:

IOAPIC: Fixed/hacked the debug register accessors.

File:
1 edited

Legend:

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

    r61812 r61815  
    293293DECLINLINE(uint32_t) ioapicGetVersion(void)
    294294{
    295     uint32_t uValue = RT_MAKE_U32(IOAPIC_VERSION, IOAPIC_MAX_REDIR_ENTRIES);
     295    uint32_t uValue = RT_MAKE_U32(0x11, IOAPIC_MAX_REDIR_ENTRIES);
    296296    Log2(("IOAPIC: ioapicGetVersion: returns %#RX32\n", uValue));
    297297    return uValue;
     
    864864{
    865865    PCIOAPIC pThis = PDMINS_2_DATA((PPDMDEVINS)pvUser, PCIOAPIC);
    866     pValue->u64 = ioapicGetRedirTableEntry(pThis, pDesc->offRegister);
     866    Assert(pDesc->offRegister < RT_ELEMENTS(pThis->au64RedirTable));
     867    pValue->u64 = pThis->au64RedirTable[pDesc->offRegister];
    867868    return VINF_SUCCESS;
    868869}
     
    872873{
    873874    PIOAPIC pThis = PDMINS_2_DATA((PPDMDEVINS)pvUser, PIOAPIC);
    874     return ioapicSetRedirTableEntry(pThis, pDesc->offRegister, pValue->u64);
     875    /* No locks, no checks, just do it. */
     876    Assert(pDesc->offRegister < RT_ELEMENTS(pThis->au64RedirTable));
     877    pThis->au64RedirTable[pDesc->offRegister] = pValue->u64;
     878    return VINF_SUCCESS;
    875879}
    876880
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