VirtualBox

Ignore:
Timestamp:
Apr 9, 2018 2:50:53 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121877
Message:

PCI: Added a tiny bit of paranoia to address splitup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevPciIch9.cpp

    r71768 r71774  
    111111    pPciAddr->iDeviceFunc   = (GCPhysAddr >> 12) & ((1<<(5+3))   - 1); // 5 bits - device, 3 bits - function
    112112    pPciAddr->iRegister     = (GCPhysAddr >>  0) & ((1<<(6+4+2)) - 1); // 6 bits - register, 4 bits - extended register, 2 bits -Byte Enable
     113    RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia */
    113114}
    114115
     
    118119    pPciAddr->iDeviceFunc  = (pPciRoot->uConfigReg >> 8) & 0xff;
    119120    pPciAddr->iRegister    = (pPciRoot->uConfigReg & 0xfc) | (addr & 3);
     121    RT_UNTRUSTED_VALIDATED_FENCE(); /* paranoia */
    120122}
    121123
     
    689691 * @remarks Caller enters the device critical section.
    690692 */
    691 PDMBOTHCBDECL(int) ich9pciMcfgMMIORead (PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb)
     693PDMBOTHCBDECL(int) ich9pciMcfgMMIORead(PPDMDEVINS pDevIns, void *pvUser, RTGCPHYS GCPhysAddr, void *pv, unsigned cb)
    692694{
    693695    PDEVPCIROOT pPciRoot = PDMINS_2_DATA(pDevIns, PDEVPCIROOT);
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