VirtualBox

Changeset 27115 in vbox


Ignore:
Timestamp:
Mar 5, 2010 4:39:44 PM (15 years ago)
Author:
vboxsync
Message:

memobj-r0drv-solaris.c: corrected some assertions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/vbi/memobj-r0drv-solaris.c

    r27037 r27115  
    184184        return VERR_NO_MEMORY;
    185185    }
    186     Assert(physAddr < UINT64_MAX);
     186    Assert(!(physAddr & PAGE_OFFSET_MASK));
    187187    pMemSolaris->Core.pv = virtAddr;
    188188    pMemSolaris->Core.u.Phys.PhysBase = physAddr;
     
    210210         return VERR_NO_MEMORY;
    211211
    212     if (PhysHighest == NIL_RTHCPHYS)
    213         PhysHighest = UINT64_MAX - 1;
     212     AssertCompile(NIL_RTHCPHYS == UINT64_MAX);
    214213
    215214     /* Allocate physically contiguous memory aligned as specified. */
     
    221220         return VERR_NO_CONT_MEMORY;
    222221     }
    223      Assert(physAddr < UINT64_MAX);
     222     Assert(!(physAddr & PAGE_OFFSET_MASK));
     223     Assert(physAddr < PhysHighest);
     224     Assert(physAddr + cb <= PhysHighest);
    224225     pMemSolaris->Core.pv = virtAddr;
    225226     pMemSolaris->Core.u.Cont.Phys = physAddr;
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