VirtualBox

Changeset 29441 in vbox


Ignore:
Timestamp:
May 13, 2010 9:01:10 AM (15 years ago)
Author:
vboxsync
Message:

AHCI: Fix assertion

File:
1 edited

Legend:

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

    r29239 r29441  
    54065406                ahciSendD2HFis(pAhciPort, pAhciPortTaskState, pAhciPortTaskState->cmdFis, true);
    54075407                pAhciPort->aCachedTasks[pNotifierItem->iTask] = pAhciPortTaskState;
     5408#ifdef RT_STRICT
     5409                fXchg = ASMAtomicCmpXchgBool(&pAhciPortTaskState->fActive, false, true);
     5410                AssertMsg(fXchg, ("Task is not active\n"));
     5411#endif
    54085412                return true;
    54095413            }
     
    54125416                ahciFinishStorageDeviceReset(pAhciPort, pAhciPortTaskState);
    54135417                pAhciPort->aCachedTasks[pNotifierItem->iTask] = pAhciPortTaskState;
     5418#ifdef RT_STRICT
     5419                fXchg = ASMAtomicCmpXchgBool(&pAhciPortTaskState->fActive, false, true);
     5420                AssertMsg(fXchg, ("Task is not active\n"));
     5421#endif
    54145422                return true;
    54155423            }
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