VirtualBox

Changeset 44718 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Feb 15, 2013 4:00:56 PM (12 years ago)
Author:
vboxsync
Message:

BusLogic: Do not write back the CDB.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevBusLogic.cpp

    r44672 r44718  
    11851185    pTaskState->CommandControlBlockGuest.c.uHostAdapterStatus = uHostAdapterStatus;
    11861186    pTaskState->CommandControlBlockGuest.c.uDeviceStatus      = uDeviceStatus;
    1187     /** @todo this is wrong - writing too much! */
    1188     PDMDevHlpPhysWrite(pBusLogic->CTX_SUFF(pDevIns), GCPhysAddrCCB, &pTaskState->CommandControlBlockGuest, sizeof(CCBC));
     1187    /* Rewrite CCB up to the CDB; perhaps more than necessary. */
     1188    PDMDevHlpPhysWrite(pBusLogic->CTX_SUFF(pDevIns), GCPhysAddrCCB, &pTaskState->CommandControlBlockGuest, RT_OFFSETOF(CCBC, abCDB));
    11891189
    11901190# ifdef RT_STRICT
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