VirtualBox

Ignore:
Timestamp:
Dec 9, 2011 2:56:37 PM (13 years ago)
Author:
vboxsync
Message:

Fixed DMA workaround for AHCI/ATAPI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS-new/ahci.c

    r39560 r39573  
    520520    ahci_cmd_data(bios_dsk, ATA_CMD_PACKET);
    521521    VBOXAHCI_DEBUG("%s: transferred %lu bytes\n", __func__, ahci->aCmdHdr[1]);
     522    bios_dsk->drqp.trsfbytes = ahci->aCmdHdr[1];
    522523#ifdef DMA_WORKAROUND
    523     rep_movsw(bios_dsk->drqp.buffer, bios_dsk->drqp.buffer, bios_dsk->drqp.nsect * 2048 / 2);
     524    rep_movsw(bios_dsk->drqp.buffer, bios_dsk->drqp.buffer, bios_dsk->drqp.trsfbytes / 2);
    524525#endif
    525     bios_dsk->drqp.trsfbytes = ahci->aCmdHdr[1];
    526526    return ahci->aCmdHdr[1] == 0 ? 4 : 0;
    527527//    return 0;   //@todo!!
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