VirtualBox

Changeset 45974 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
May 9, 2013 10:18:45 PM (12 years ago)
Author:
vboxsync
Message:

DevATA: Return no data for status register if no device on channel present.

File:
1 edited

Legend:

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

    r45973 r45974  
    45064506    uint32_t val;
    45074507
    4508     if ((!pCtl->aIfs[0].pDrvBlock && !pCtl->aIfs[1].pDrvBlock) ||
    4509             (pCtl->iSelectedIf == 1 && !s->pDrvBlock))
    4510         val = 0;
     4508    //@todo: The handler should not be even registered if there
     4509    // is no device on an IDE channel.
     4510    if (!pCtl->aIfs[0].pDrvBlock && !pCtl->aIfs[1].pDrvBlock)
     4511        val = 0xff;
     4512    else if (pCtl->iSelectedIf == 1 && !s->pDrvBlock)
     4513        val = 0;    /* Device 1 selected, Device 0 responding for it. */
    45114514    else
    45124515        val = s->uATARegStatus;
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