Changeset 2324 in vbox for trunk/src/VBox
- Timestamp:
- Apr 23, 2007 8:22:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAll.cpp
r2318 r2324 505 505 || Addr + cbSize < Addr)) 506 506 { 507 Addr += PAGE_SIZE;508 if (cbSize > PAGE_SIZE)509 cbSize -= PAGE_SIZE;510 else511 cbSize = 0;512 513 507 /* Don't recursively call PGMVerifyAccess as we might run out of stack. */ 514 508 for (;;) 515 509 { 510 Addr += PAGE_SIZE; 511 if (cbSize > PAGE_SIZE) 512 cbSize -= PAGE_SIZE; 513 else 514 cbSize = 1; 516 515 rc = PGMVerifyAccess(pVM, Addr, 1, fAccess); 517 516 if (rc != VINF_SUCCESS) 518 517 break; 519 520 if (cbSize <= PAGE_SIZE) 518 if (PAGE_ADDRESS(Addr) == PAGE_ADDRESS(Addr + cbSize - 1)) 521 519 break; 522 cbSize -= PAGE_SIZE;523 Addr += PAGE_SIZE;524 520 } 525 521 }
Note:
See TracChangeset
for help on using the changeset viewer.