VirtualBox

Changeset 42842 in vbox for trunk/src


Ignore:
Timestamp:
Aug 16, 2012 11:08:49 AM (12 years ago)
Author:
vboxsync
Message:

BIOS: Properly read sector count for big SATA disks.

File:
1 edited

Legend:

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

    r42811 r42842  
    669669                /** @todo update sectors to be a 64 bit number (also lba...). */
    670670                if (cSectors == 268435455)
    671                     cSectors = *(uint16_t *)(abBuffer+(100*2)); // words 100 to 103 (someday)
     671                    cSectors = *(uint32_t *)(abBuffer+(100*2)); // words 100 to 103 (someday)
    672672
    673673                DBG_AHCI("AHCI: %ld sectors\n", cSectors);
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