VirtualBox

Changeset 14074 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Nov 11, 2008 12:02:26 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39130
Message:

PDMQueue: The 64-bit MSC warning hunt continues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMQueue.cpp

    r13818 r14074  
    7979     */
    8080    cbItem = RT_ALIGN(cbItem, sizeof(RTUINTPTR));
    81     unsigned cb = cbItem * cItems + RT_ALIGN_Z(RT_OFFSETOF(PDMQUEUE, aFreeItems[cItems + PDMQUEUE_FREE_SLACK]), 16);
     81    size_t cb = cbItem * cItems + RT_ALIGN_Z(RT_OFFSETOF(PDMQUEUE, aFreeItems[cItems + PDMQUEUE_FREE_SLACK]), 16);
    8282    PPDMQUEUE pQueue;
    8383    int rc;
     
    646646     */
    647647    PPDMQUEUEITEMCORE pItems = (PPDMQUEUEITEMCORE)ASMAtomicXchgPtr((void * volatile *)&pQueue->pPendingR3, NULL);
    648     RTRCPTR           pItemsRC;
    649     ASMAtomicXchgSizeCorrect(&pQueue->pPendingRC, NIL_RTRCPTR, &pItemsRC);
    650     RTR0PTR           pItemsR0;
    651     ASMAtomicXchgSizeCorrect(&pQueue->pPendingR0, NIL_RTR0PTR, &pItemsR0);
     648    RTRCPTR           pItemsRC = ASMAtomicXchgRCPtr(&pQueue->pPendingRC, NIL_RTRCPTR);
     649    RTR0PTR           pItemsR0 = ASMAtomicXchgR0Ptr(&pQueue->pPendingR0, NIL_RTR0PTR);
    652650
    653651    AssertMsg(pItems || pItemsRC || pItemsR0, ("ERROR: can't all be NULL now!\n"));
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