VirtualBox

Changeset 2298 in vbox for trunk


Ignore:
Timestamp:
Apr 20, 2007 11:55:51 PM (18 years ago)
Author:
vboxsync
Message:

Don't update Addr unless we're going to loop.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r2279 r2298  
    512512
    513513        /* Don't recursively call PGMVerifyAccess as we might run out of stack. */
    514         for(;;)
     514        for (;;)
    515515        {
    516516            rc = PGMVerifyAccess(pVM, Addr, 1, fAccess);
     
    518518                break;
    519519
     520            if (cbSize <= PAGE_SIZE)
     521                break;
     522            cbSize =- PAGE_SIZE;
    520523            Addr += PAGE_SIZE;
    521             if (cbSize > PAGE_SIZE)
    522                 cbSize =- PAGE_SIZE;
    523             else
    524                 break;
    525524        }
    526525    }
    527526    return rc;
    528527}
     528
    529529
    530530#ifndef IN_GC
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