Changeset 22168 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Aug 11, 2009 2:42:25 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/rombios.c
r21618 r22168 222 222 /* Enough for now */ 223 223 # define BX_MAX_SCSI_DEVICES 4 224 # define BX_MAX_STORAGE_DEVICES (BX_MAX_ATA_DEVICES + BX_MAX_SCSI_DEVICES) 224 225 225 226 /* A SCSI device starts always at BX_MAX_ATA_DEVICES. */ … … 2357 2358 // hdidmap and cdidmap init. 2358 2359 for (device=0; device<BX_MAX_ATA_DEVICES; device++) { 2359 write_byte(ebda_seg,&EbdaData->ata.hdidmap[device],BX_MAX_ ATA_DEVICES);2360 write_byte(ebda_seg,&EbdaData->ata.cdidmap[device],BX_MAX_ ATA_DEVICES);2360 write_byte(ebda_seg,&EbdaData->ata.hdidmap[device],BX_MAX_STORAGE_DEVICES); 2361 write_byte(ebda_seg,&EbdaData->ata.cdidmap[device],BX_MAX_STORAGE_DEVICES); 2361 2362 } 2362 2363 … … 5420 5421 #ifdef VBOX_WITH_SCSI 5421 5422 // basic check : device has to be defined 5422 if ( (GET_ELDL() < 0x80) || (GET_ELDL() >= 0x80 + BX_MAX_ ATA_DEVICES + BX_MAX_SCSI_DEVICES) ) {5423 if ( (GET_ELDL() < 0x80) || (GET_ELDL() >= 0x80 + BX_MAX_STORAGE_DEVICES) ) { 5423 5424 BX_INFO("int13_harddisk: function %02x, ELDL out of range %02x\n", GET_AH(), GET_ELDL()); 5424 5425 goto int13_fail; … … 5437 5438 #ifdef VBOX_WITH_SCSI 5438 5439 // basic check : device has to be valid 5439 if (device >= BX_MAX_ ATA_DEVICES + BX_MAX_SCSI_DEVICES) {5440 if (device >= BX_MAX_STORAGE_DEVICES) { 5440 5441 BX_INFO("int13_harddisk: function %02x, unmapped device for ELDL=%02x\n", GET_AH(), GET_ELDL()); 5441 5442 goto int13_fail;
Note:
See TracChangeset
for help on using the changeset viewer.