VirtualBox

Changeset 66372 in vbox for trunk/src/VBox/Devices/PC/BIOS


Ignore:
Timestamp:
Mar 30, 2017 7:22:45 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
114317
Message:

BIOS: Corrected El Torito hard disk emulation geometry calculation.

File:
1 edited

Legend:

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

    r63562 r66372  
    431431    case 0x04:  /* Hard disk */
    432432        cdemu->vdevice.spt       = read_byte(boot_segment,446+6)&0x3f;
    433         cdemu->vdevice.cylinders = (read_byte(boot_segment,446+6)<<2) + read_byte(boot_segment,446+7) + 1;
     433        cdemu->vdevice.cylinders = ((read_byte(boot_segment,446+6)&~0x3f)<<2) + read_byte(boot_segment,446+7) + 1;
    434434        cdemu->vdevice.heads     = read_byte(boot_segment,446+5) + 1;
    435435        break;
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