VirtualBox

Changeset 35096 in vbox


Ignore:
Timestamp:
Dec 14, 2010 3:48:39 PM (14 years ago)
Author:
vboxsync
Message:

BIOS: Do not print ELDL messages in release builds.

File:
1 edited

Legend:

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

    r35068 r35096  
    228228#    define VBOX_IS_SCSI_DEVICE(device_id) (device_id >= BX_MAX_ATA_DEVICES)
    229229#    define VBOX_GET_SCSI_DEVICE(device_id) (device_id - BX_MAX_ATA_DEVICES)
     230#else
     231#    define BX_MAX_STORAGE_DEVICES  BX_MAX_ATA_DEVICES
    230232#endif
    231233
     
    54535455  write_byte(0x0040, 0x008e, 0);  // clear completion flag
    54545456
    5455 #ifdef VBOX_WITH_SCSI
    54565457  // basic check : device has to be defined
    54575458  if ( (GET_ELDL() < 0x80) || (GET_ELDL() >= 0x80 + BX_MAX_STORAGE_DEVICES) ) {
    5458     BX_INFO("int13_harddisk: function %02x, ELDL out of range %02x\n", GET_AH(), GET_ELDL());
     5459    BX_DEBUG("int13_harddisk: function %02x, ELDL out of range %02x\n", GET_AH(), GET_ELDL());
    54595460    goto int13_fail;
    54605461    }
    5461 #else
    5462   // basic check : device has to be defined
    5463   if ( (GET_ELDL() < 0x80) || (GET_ELDL() >= 0x80 + BX_MAX_ATA_DEVICES) ) {
    5464     BX_INFO("int13_harddisk: function %02x, ELDL out of range %02x\n", GET_AH(), GET_ELDL());
     5462
     5463  // Get the ata channel
     5464  device=read_byte(ebda_seg,&EbdaData->ata.hdidmap[GET_ELDL()-0x80]);
     5465
     5466  // basic check : device has to be valid
     5467  if (device >= BX_MAX_STORAGE_DEVICES) {
     5468    BX_DEBUG("int13_harddisk: function %02x, unmapped device for ELDL=%02x\n", GET_AH(), GET_ELDL());
    54655469    goto int13_fail;
    54665470    }
    5467 #endif
    5468 
    5469   // Get the ata channel
    5470   device=read_byte(ebda_seg,&EbdaData->ata.hdidmap[GET_ELDL()-0x80]);
    5471 
    5472 #ifdef VBOX_WITH_SCSI
    5473   // basic check : device has to be valid
    5474   if (device >= BX_MAX_STORAGE_DEVICES) {
    5475     BX_INFO("int13_harddisk: function %02x, unmapped device for ELDL=%02x\n", GET_AH(), GET_ELDL());
    5476     goto int13_fail;
    5477     }
    5478 #else
    5479   // basic check : device has to be valid
    5480   if (device >= BX_MAX_ATA_DEVICES) {
    5481     BX_INFO("int13_harddisk: function %02x, unmapped device for ELDL=%02x\n", GET_AH(), GET_ELDL());
    5482     goto int13_fail;
    5483     }
    5484 #endif
    54855471
    54865472  switch (GET_AH()) {
     
    55435529      // sanity check on cyl heads, sec
    55445530      if( (cylinder >= nlc) || (head >= nlh) || (sector > nlspt )) {
    5545         BX_INFO("int13_harddisk: function %02x, parameters out of range %04x/%04x/%04x!\n", GET_AH(), cylinder, head, sector);
     5531        BX_INFO("int13_harddisk: function %02x, disk %02x, parameters out of range %04x/%04x/%04x!\n", GET_AH(), GET_DL(), cylinder, head, sector);
    55465532        goto int13_fail;
    55475533        }
     
    60236009  /* basic check : device should be 0xE0+ */
    60246010  if( (GET_ELDL() < 0xE0) || (GET_ELDL() >= 0xE0+BX_MAX_ATA_DEVICES) ) {
    6025     BX_INFO("int13_cdrom: function %02x, ELDL out of range %02x\n", GET_AH(), GET_ELDL());
     6011    BX_DEBUG("int13_cdrom: function %02x, ELDL out of range %02x\n", GET_AH(), GET_ELDL());
    60266012    goto int13_fail;
    60276013    }
     
    60326018  /* basic check : device has to be valid  */
    60336019  if (device >= BX_MAX_ATA_DEVICES) {
    6034     BX_INFO("int13_cdrom: function %02x, unmapped device for ELDL=%02x\n", GET_AH(), GET_ELDL());
     6020    BX_DEBUG("int13_cdrom: function %02x, unmapped device for ELDL=%02x\n", GET_AH(), GET_ELDL());
    60356021    goto int13_fail;
    60366022    }
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