VirtualBox

Changeset 74453 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 25, 2018 11:15:13 AM (6 years ago)
Author:
vboxsync
Message:

DrvChar,asm.h: Added ASMAtomicXchgZ to get rid of 32-bit VCC warnings/errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DrvChar.cpp

    r74447 r74453  
    212212    {       
    213213        size_t cbOld = 0;
    214         ASMAtomicXchgSizeCorrect(&pThis->cbRemaining, 0, &cbOld);
     214        cbOld = ASMAtomicXchgZ(&pThis->cbRemaining, 0);
    215215        if (cbOld) /* Kick the I/O thread to fetch new data. */
    216216            rc = pThis->pDrvStream->pfnPollInterrupt(pThis->pDrvStream);
     
    218218
    219219    LogFlowFunc(("-> %Rrc\n", rc));
    220     return VINF_SUCCESS;
     220    return VINF_SUCCESS; /** @todo r=bird: return rc? */
    221221}
    222222
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