VirtualBox

Changeset 47527 in vbox for trunk/src


Ignore:
Timestamp:
Aug 2, 2013 5:19:21 PM (11 years ago)
Author:
vboxsync
Message:

FDC: Fail READ ID if no disk in drive.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevFdc.cpp

    r47522 r47527  
    21202120    /* READ_ID can't automatically succeed! */
    21212121#ifdef VBOX
    2122     if (/* !cur_drv->fMediaPresent || */
    2123         ((fdctrl->dsr & FD_DSR_DRATEMASK) != cur_drv->media_rate)) {
     2122    if (!cur_drv->max_track) {
     2123        FLOPPY_DPRINTF("read id when no disk in drive\n");
     2124        fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA, 0x00);
     2125    } else if ((fdctrl->dsr & FD_DSR_DRATEMASK) != cur_drv->media_rate) {
    21242126        FLOPPY_DPRINTF("read id rate mismatch (fdc=%d, media=%d)\n",
    21252127                       fdctrl->dsr & FD_DSR_DRATEMASK, cur_drv->media_rate);
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