VirtualBox

Changeset 69703 in vbox


Ignore:
Timestamp:
Nov 15, 2017 12:54:20 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119078
Message:

BIOS: Slightly adjusted boot sector validity test (fixes darwinx86-602.iso).

Location:
trunk/src/VBox/Devices/PC/BIOS
Files:
2 edited

Legend:

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

    r69501 r69703  
    324324    // 0x55AA signature and a valid partition table but zeros in the
    325325    // rest of the boot sector. We do a quick check by comparing the first
    326     // two words of boot sector; if identical, the boot sector is
     326    // and third word of boot sector; if identical, the boot sector is
    327327    // extremely unlikely to be valid.
    328328    if (bootdrv != 0) bootchk = 0;
     
    335335#endif // BX_ELTORITO_BOOT
    336336
    337     if (read_word(bootseg,0) == read_word(bootseg,2)
     337    if (read_word(bootseg,0) == read_word(bootseg,4)
    338338      || (bootchk == 0 && read_word(bootseg,0x1fe) != 0xaa55))
    339339    {
  • trunk/src/VBox/Devices/PC/BIOS/notes.txt

    r67785 r69703  
    101101  the top of memory.
    102102
    103 
     103- Darwin x86 6.0.2 ISO (darwinx86-602.iso) has a bizarre boot sector (using
     104  El Torito hard disk emulation) with the first five bytes being zero. It
     105  appears to be valid despite the oddity.
    104106
    105107 286 BIOS
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette