VirtualBox

Changeset 812 in vbox


Ignore:
Timestamp:
Feb 9, 2007 2:28:51 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18488
Message:

Inverted bit checks

File:
1 edited

Legend:

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

    r811 r812  
    624624    /* Double check the own bit; guest drivers might be buggy and lock prefixes in the recompiler are ignored by other threads. */
    625625#ifdef DEBUG
    626     if (tmd->tmd1.own == 0 && (ownbyte & 0x80))
     626    if (tmd->tmd1.own == 1 && !(ownbyte & 0x80))
    627627        Log(("pcnetTmdLoad: own bit flipped while reading!!\n"));
    628628#endif
    629     if (ownbyte & 0x80)
    630         tmd->tmd1.own = 1;
     629    if (!(ownbyte & 0x80))
     630        tmd->tmd1.own = 0;
    631631}
    632632
     
    709709    /* Double check the own bit; guest drivers might be buggy and lock prefixes in the recompiler are ignored by other threads. */
    710710#ifdef DEBUG
    711     if (rmd->rmd1.own == 0 && (ownbyte & 0x80))
    712         Log(("pcnetRmdLoad: own bit flipped while reading!!\n"));
    713 #endif
    714     if (ownbyte & 0x80)
    715         rmd->rmd1.own = 1;
     711    if (rmd->rmd1.own == 1 && !(ownbyte & 0x80))
     712        Log(("pcnetTmdLoad: own bit flipped while reading!!\n"));
     713#endif
     714    if (!(ownbyte & 0x80))
     715        rmd->rmd1.own = 0;
    716716}
    717717
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