VirtualBox

Changeset 874 in vbox


Ignore:
Timestamp:
Feb 13, 2007 2:10:29 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18583
Message:

Paranoia for 64-bit restore issue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r397 r874  
    576576                AssertCompile(sizeof(paPages[0]) == sizeof(pOut->aPages[0]));
    577577                memcpy(paPages, &pOut->aPages[0], sizeof(paPages[0]) * cPages);
     578#if HC_ARCH_BITS == 64 /* -> strict only */
     579                for (unsigned i = 0; i < cPages; i++)
     580                    AssertReleaseMsg(   paPages[i].Phys <= 0xfffff000
     581                                     && !(paPages[i].Phys & PAGE_OFFSET_MASK)
     582                                     && paPages[i].Phys > 0,
     583                                     ("[%d]=%VHp\n", paPages[i].Phys));
     584#endif
    578585            }
    579586            RTMemFree(pOut);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette