Changeset 5263 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Oct 12, 2007 3:43:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/rombios.c
r5206 r5263 4002 4002 #ifdef VBOX 4003 4003 case 0x89: 4004 // Switch to Protected Mode. 4004 // Switch to Protected Mode. 4005 4005 // ES:DI points to user-supplied GDT 4006 4006 // BH/BL contains starting interrupt numbers for PIC0/PIC1 … … 7977 7977 Bit8u bootlan; 7978 7978 #endif /* VBOX */ 7979 #ifndef VBOX 7979 7980 Bit8u bootchk; 7981 #endif /* !VBOX */ 7980 7982 Bit16u bootseg; 7981 7983 Bit16u status; … … 8174 8176 } 8175 8177 8176 // check signature if instructed by cmos reg 0x38, only for floppy8177 // bootchk = 1 : signature check disabled8178 // bootchk = 0 : signature check enabled8179 if (bootdrv != 0) bootchk = 0;8180 8178 #ifdef VBOX 8181 // Don't check boot sectors on floppies and don't read CMOS - byte 8179 // Don't check boot sectors on floppies and don't read CMOS - byte 8182 8180 // 0x38 in CMOS always has the low bit clear. 8183 8181 // There is *no* requirement whatsoever for a valid boot sector to … … 8187 8185 // in one of the first few bytes, absence of long sequences of identical 8188 8186 // bytes at the start or beginning or boot sector etc. 8189 // The risk of attempting to boot an invalid floppy is low, certainly 8187 // The risk of attempting to boot an invalid floppy is low, certainly 8190 8188 // lower than the risk of refusing to boot a valid floppy. 8191 bootchk = 1; 8192 #else 8189 #else /* !VBOX */ 8190 // check signature if instructed by cmos reg 0x38, only for floppy 8191 // bootchk = 1 : signature check disabled 8192 // bootchk = 0 : signature check enabled 8193 if (bootdrv != 0) bootchk = 0; 8193 8194 else bootchk = inb_cmos(0x38) & 0x01; 8194 #endif8195 8195 8196 8196 #if BX_ELTORITO_BOOT … … 8210 8210 } 8211 8211 } 8212 #endif /* !VBOX */ 8212 8213 8213 8214 #if BX_ELTORITO_BOOT
Note:
See TracChangeset
for help on using the changeset viewer.