Changeset 27115 in vbox
- Timestamp:
- Mar 5, 2010 4:39:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/solaris/vbi/memobj-r0drv-solaris.c
r27037 r27115 184 184 return VERR_NO_MEMORY; 185 185 } 186 Assert( physAddr < UINT64_MAX);186 Assert(!(physAddr & PAGE_OFFSET_MASK)); 187 187 pMemSolaris->Core.pv = virtAddr; 188 188 pMemSolaris->Core.u.Phys.PhysBase = physAddr; … … 210 210 return VERR_NO_MEMORY; 211 211 212 if (PhysHighest == NIL_RTHCPHYS) 213 PhysHighest = UINT64_MAX - 1; 212 AssertCompile(NIL_RTHCPHYS == UINT64_MAX); 214 213 215 214 /* Allocate physically contiguous memory aligned as specified. */ … … 221 220 return VERR_NO_CONT_MEMORY; 222 221 } 223 Assert(physAddr < UINT64_MAX); 222 Assert(!(physAddr & PAGE_OFFSET_MASK)); 223 Assert(physAddr < PhysHighest); 224 Assert(physAddr + cb <= PhysHighest); 224 225 pMemSolaris->Core.pv = virtAddr; 225 226 pMemSolaris->Core.u.Cont.Phys = physAddr;
Note:
See TracChangeset
for help on using the changeset viewer.