VirtualBox

Changeset 22977 in vbox for trunk


Ignore:
Timestamp:
Sep 13, 2009 1:00:19 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52254
Message:

PDMASyncCompletionFile: uBitmaskAlignment fix.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r22967 r22977  
    511511    else
    512512    {
    513         pEpClassFile->uBitmaskAlignment   = ~((RTR3UINTPTR)AioLimits.cbBufferAlignment - 1);
     513        pEpClassFile->uBitmaskAlignment   = AioLimits.cbBufferAlignment ? ~((RTR3UINTPTR)AioLimits.cbBufferAlignment - 1) : RTR3UINTPTR_MAX;
    514514        pEpClassFile->cReqsOutstandingMax = AioLimits.cReqsOutstandingMax;
    515515        pEpClassFile->fFailsafe = false;
  • trunk/src/VBox/VMM/PDMAsyncCompletionFileNormal.cpp

    r22967 r22977  
    419419
    420420                AssertMsg((pEpClassFile->uBitmaskAlignment & (RTR3UINTPTR)pvBuf) == (RTR3UINTPTR)pvBuf,
    421                             ("AIO: Alignment restrictions not met!\n"));
     421                          ("AIO: Alignment restrictions not met! pvBuf=%p uBitmaskAlignment=%p\n", pvBuf, pEpClassFile->uBitmaskAlignment));
    422422
    423423                if (enmTransferType == PDMACTASKFILETRANSFER_WRITE)
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