Changeset 40754 in vbox for trunk/src/VBox/Devices/PC/BIOS-new
- Timestamp:
- Apr 3, 2012 10:59:59 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS-new/boot.c
r38699 r40754 297 297 } 298 298 299 // Don't check boot sectors on floppies and don't read CMOS - byte 300 // 0x38 in CMOS always has the low bit clear. 301 // There is *no* requirement whatsoever for a valid boot sector to 302 // have a 55AAh signature. UNIX boot floppies typically have no such 299 // There is *no* requirement whatsoever for a valid floppy boot sector 300 // to have a 55AAh signature. UNIX boot floppies typically have no such 303 301 // signature. In general, it is impossible to tell a valid bootsector 304 302 // from an invalid one. … … 317 315 #endif // BX_ELTORITO_BOOT 318 316 319 if (bootchk == 0) { 320 if (read_word(bootseg,0x1fe) != 0xaa55 || 321 read_word(bootseg,0) == read_word(bootseg,2)) { 322 print_boot_failure(bootcd, bootlan, bootdrv, 0, lastdrive); 323 return 0x00000000; 324 } 317 if (read_word(bootseg,0) == read_word(bootseg,2) 318 || (bootchk == 0 && read_word(bootseg,0x1fe) != 0xaa55)) 319 { 320 print_boot_failure(bootcd, bootlan, bootdrv, 0, lastdrive); 321 return 0x00000000; 325 322 } 326 323
Note:
See TracChangeset
for help on using the changeset viewer.