VirtualBox

Changeset 42968 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Aug 24, 2012 8:29:35 AM (12 years ago)
Author:
vboxsync
Message:

BIOS: Set transferred sector count for AHCI reads/writes.

File:
1 edited

Legend:

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

    r42947 r42968  
    502502    ahci_port_init(bios_dsk->ahci_seg :> 0, bios_dsk->ahcidev[device_id].port);
    503503    ahci_cmd_data(bios_dsk, AHCI_CMD_READ_DMA_EXT);
     504    DBG_AHCI("%s: transferred %lu bytes\n", __func__, ((ahci_t __far *)(bios_dsk->ahci_seg :> 0))->aCmdHdr[1]);
     505    bios_dsk->drqp.trsfsectors = bios_dsk->drqp.nsect;
    504506#ifdef DMA_WORKAROUND
    505507    rep_movsw(bios_dsk->drqp.buffer, bios_dsk->drqp.buffer, bios_dsk->drqp.nsect * 512 / 2);
     
    531533    ahci_port_init(bios_dsk->ahci_seg :> 0, bios_dsk->ahcidev[device_id].port);
    532534    ahci_cmd_data(bios_dsk, AHCI_CMD_WRITE_DMA_EXT);
     535    DBG_AHCI("%s: transferred %lu bytes\n", __func__, ((ahci_t __far *)(bios_dsk->ahci_seg :> 0))->aCmdHdr[1]);
     536    bios_dsk->drqp.trsfsectors = bios_dsk->drqp.nsect;
    533537    high_bits_restore(bios_dsk->ahci_seg :> 0);
    534538    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