VirtualBox

Changeset 21020 in vbox for trunk


Ignore:
Timestamp:
Jun 29, 2009 11:14:58 AM (16 years ago)
Author:
vboxsync
Message:

wrong return code triggers assertions in the debug build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r20672 r21020  
    37693769            case 0x04: /* IODATA */
    37703770                rc = e1kRegRead(pState, pState->uSelectedReg, pu32, cb);
     3771                /* @todo wrong return code triggers assertions in the debug build; fix please */
     3772                if (rc == VINF_IOM_HC_MMIO_READ)
     3773                    rc = VINF_IOM_HC_IOPORT_READ;
     3774
    37713775                E1kLog2(("%s e1kIOPortIn: IODATA(4), reading from selected register %#010x, val=%#010x\n", szInst, pState->uSelectedReg, *pu32));
    37723776                break;
     
    38193823                E1kLog2(("%s e1kIOPortOut: IODATA(4), writing to selected register %#010x, value=%#010x\n", szInst, pState->uSelectedReg, u32));
    38203824                rc = e1kRegWrite(pState, pState->uSelectedReg, &u32, cb);
     3825                /* @todo wrong return code triggers assertions in the debug build; fix please */
     3826                if (rc == VINF_IOM_HC_MMIO_WRITE)
     3827                    rc = VINF_IOM_HC_IOPORT_WRITE;
    38213828                break;
    38223829            default:
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