VirtualBox

儲存庫 vbox 的更動 55132


忽略:
時間撮記:
2015-4-8 下午01:05:17 (10 年 以前)
作者:
vboxsync
訊息:

BIOS: Fixed drive detection when the first SCSI device is a CD-ROM.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/PC/BIOS/scsi.c

    r52812 r55132  
    399399            BX_PANIC("%s: SCSI_INQUIRY failed\n", __func__);
    400400
     401        devcount_scsi = bios_dsk->scsi_devcount;
     402
    401403        /* Check the attached device. */
    402404        if (   ((buffer[0] & 0xe0) == 0)
     
    406408
    407409            /* We add the disk only if the maximum is not reached yet. */
    408             if (bios_dsk->scsi_devcount < BX_MAX_SCSI_DEVICES)
     410            if (devcount_scsi < BX_MAX_SCSI_DEVICES)
    409411            {
    410412                uint32_t    sectors, sector_size, cylinders;
     
    440442                    continue;
    441443                }
    442 
    443                 devcount_scsi = bios_dsk->scsi_devcount;
    444444
    445445                /* Get logical CHS geometry. */
     
    537537
    538538                devcount_scsi++;
    539                 bios_dsk->scsi_devcount = devcount_scsi;
    540539            }
    541540            else
     
    572571
    573572            devcount_scsi++;
    574             bios_dsk->scsi_devcount = devcount_scsi;
    575573        }
    576574        else
    577575            DBG_SCSI("%s: No supported device detected at %d\n", __func__, i);
     576
     577        bios_dsk->scsi_devcount = devcount_scsi;
    578578    }
    579579}
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette