VirtualBox

Changeset 81136 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Oct 8, 2019 8:26:49 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133769
Message:

IOM,RTC,PCI: Make the port parameter in the I/O port callbacks relative to the start of the mapping rather than absolute. For absolute port numbers, use the IOM_IOPORT_F_ABS flag. bugref:9218

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/IOMR0.cpp

    r81056 r81136  
    111111    AssertPtrNullReturn(pfnInStr, VERR_INVALID_POINTER);
    112112
     113    uint16_t const fFlags = pGVM->iomr0.s.paIoPortRing3Regs[hIoPorts].fFlags;
    113114    RTIOPORT const cPorts = pGVM->iomr0.s.paIoPortRing3Regs[hIoPorts].cPorts;
    114115    AssertMsgReturn(cPorts > 0 && cPorts <= _8K, ("cPorts=%s\n", cPorts), VERR_IOM_INVALID_IOPORT_HANDLE);
     
    124125    pGVM->iomr0.s.paIoPortRegs[hIoPorts].pfnInStrCallback   = pfnInStr;
    125126    pGVM->iomr0.s.paIoPortRegs[hIoPorts].cPorts             = cPorts;
     127    pGVM->iomr0.s.paIoPortRegs[hIoPorts].fFlags             = fFlags;
    126128#ifdef VBOX_WITH_STATISTICS
    127129    uint16_t const idxStats = pGVM->iomr0.s.paIoPortRing3Regs[hIoPorts].idxStats;
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