VirtualBox

Changeset 47711 in vbox


Ignore:
Timestamp:
Aug 13, 2013 7:45:10 PM (11 years ago)
Author:
vboxsync
Message:

DevFdc: Improve error reporting.

File:
1 edited

Legend:

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

    r47679 r47711  
    608608    FD_SR1_MA       = 0x01, /* Missing address mark */
    609609    FD_SR1_NW       = 0x02, /* Not writable */
     610    FD_SR1_ND       = 0x04, /* No data */
    610611    FD_SR1_EC       = 0x80  /* End of cylinder */
    611612};
    612613
    613614enum {
     615    FD_SR2_MD       = 0x01, /* Missing data address mark */
    614616    FD_SR2_SNS      = 0x04, /* Scan not satisfied */
    615617    FD_SR2_SEH      = 0x08  /* Scan equal hit */
     
    12601262        FLOPPY_DPRINTF("data rate mismatch (fdc=%d, media=%d)\n",
    12611263                       fdctrl->dsr & FD_DSR_DRATEMASK, cur_drv->media_rate);
    1262         fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA, 0x00);
     1264        fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA, FD_SR2_MD);
    12631265        fdctrl->fifo[3] = kt;
    12641266        fdctrl->fifo[4] = kh;
     
    21422144    if (!cur_drv->max_track) {
    21432145        FLOPPY_DPRINTF("read id when no disk in drive\n");
    2144         fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA, 0x00);
     2146        fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA | FD_SR1_ND, FD_SR2_MD);
    21452147    } else if ((fdctrl->dsr & FD_DSR_DRATEMASK) != cur_drv->media_rate) {
    21462148        FLOPPY_DPRINTF("read id rate mismatch (fdc=%d, media=%d)\n",
    21472149                       fdctrl->dsr & FD_DSR_DRATEMASK, cur_drv->media_rate);
    2148         fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA, 0x00);
     2150        fdctrl_stop_transfer(fdctrl, FD_SR0_ABNTERM, FD_SR1_MA | FD_SR1_ND, FD_SR2_MD);
    21492151    }
    21502152    else
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