VirtualBox

Changeset 35098 in vbox for trunk/src/VBox/Devices/PC


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

BIOS: Properly initialize hdimap table.

File:
1 edited

Legend:

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

    r35096 r35098  
    728728    //
    729729    // map between (bios hd id - 0x80) and ata channels and scsi disks.
    730 #ifdef VBOX_WITH_SCSI
    731     Bit8u  hdcount, hdidmap[BX_MAX_ATA_DEVICES+BX_MAX_SCSI_DEVICES];
    732 #else
    733     Bit8u  hdcount, hdidmap[BX_MAX_ATA_DEVICES];
    734 #endif
     730    Bit8u  hdcount, hdidmap[BX_MAX_STORAGE_DEVICES];
    735731
    736732    // map between (bios cd id - 0xE0) and ata channels
    737     Bit8u  cdcount, cdidmap[BX_MAX_ATA_DEVICES];
     733    Bit8u  cdcount, cdidmap[BX_MAX_STORAGE_DEVICES];
    738734
    739735    // Buffer for DPTE table
     
    23552351
    23562352  // hdidmap  and cdidmap init.
    2357   for (device=0; device<BX_MAX_ATA_DEVICES; device++) {
     2353  for (device=0; device<BX_MAX_STORAGE_DEVICES; device++) {
    23582354    write_byte(ebda_seg,&EbdaData->ata.hdidmap[device],BX_MAX_STORAGE_DEVICES);
    23592355    write_byte(ebda_seg,&EbdaData->ata.cdidmap[device],BX_MAX_STORAGE_DEVICES);
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