VirtualBox

Changeset 22731 in vbox


Ignore:
Timestamp:
Sep 3, 2009 9:50:30 AM (15 years ago)
Author:
vboxsync
Message:

AHCI: Fixes for safe SG list creator

File:
1 edited

Legend:

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

    r22727 r22731  
    41414141    pAhciPortTaskState->paSGEntries[0].u.temp.cUnaligned   = AHCI_CMDHDR_PRDTL_ENTRIES(pCmdHdr->u32DescInf);
    41424142    pAhciPortTaskState->paSGEntries[0].u.temp.GCPhysAddrBaseFirstUnaligned = AHCI_RTGCPHYS_FROM_U32(pCmdHdr->u32CmdTblAddrUp, pCmdHdr->u32CmdTblAddr) + AHCI_CMDHDR_PRDT_OFFSET;
     4143    pAhciPortTaskState->paSGEntries[0].u.temp.pvBuf = pAhciPortTaskState->pvBufferUnaligned;
    41434144
    41444145    if (pAhciPortTaskState->uTxDir == PDMBLOCKTXDIR_TO_DEVICE)
     
    43884389                                        {
    43894390                                            /* Mapping failed. Fall back to a bounce buffer. */
    4390                                             ahciLog(("%s: Mapping guest physical address %RGp failed with rc=%Rc\n",
     4391                                            ahciLog(("%s: Mapping guest physical address %RGp failed with rc=%Rrc\n",
    43914392                                                     __FUNCTION__, GCPhysBufferPageAligned, rc));
    43924393
     
    44644465                                    {
    44654466                                        /* Mapping failed. Fall back to a bounce buffer. */
    4466                                         ahciLog(("%s: Mapping guest physical address %RGp failed with rc=%Rc\n",
     4467                                        ahciLog(("%s: Mapping guest physical address %RGp failed with rc=%Rrc\n",
    44674468                                                    __FUNCTION__, GCPhysAddrDataBase, rc));
    44684469
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