Changeset 100355 in vbox for trunk/src/VBox/Runtime/r0drv/os2
- Timestamp:
- Jul 4, 2023 6:37:35 AM (22 months ago)
- svn:sync-xref-src-repo-rev:
- 158085
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/os2/memobj-r0drv-os2.cpp
r98103 r100355 218 218 219 219 220 DECLHIDDEN(int) rtR0MemObjNativeAllocCont(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, bool fExecutable, const char *pszTag) 220 DECLHIDDEN(int) rtR0MemObjNativeAllocCont(PPRTR0MEMOBJINTERNAL ppMem, size_t cb, RTHCPHYS PhysHighest, 221 bool fExecutable, const char *pszTag) 221 222 { 222 223 NOREF(fExecutable); 224 AssertMsgReturn(PhysHighest >= _16M - 1, ("PhysHigest=%RHp\n", PhysHighest), VERR_NOT_SUPPORTED); 223 225 224 226 /* create the object. */ … … 229 231 /* do the allocation. */ 230 232 ULONG ulPhys = ~0UL; 231 int rc = KernVMAlloc(cb, VMDHA_FIXED | VMDHA_CONTIG, &pMemOs2->Core.pv, (PPVOID)&ulPhys, NULL); 233 int rc = KernVMAlloc(cb, VMDHA_FIXED | VMDHA_CONTIG | (PhysHighest < _4G - 1 ? VMDHA_16M : 0), 234 &pMemOs2->Core.pv, (PPVOID)&ulPhys, NULL); 232 235 if (!rc) 233 236 { … … 248 251 const char *pszTag) 249 252 { 250 AssertMsgReturn(PhysHighest >= 16 *_1M, ("PhysHigest=%RHp\n", PhysHighest), VERR_NOT_SUPPORTED);253 AssertMsgReturn(PhysHighest >= _16M - 1, ("PhysHigest=%RHp\n", PhysHighest), VERR_NOT_SUPPORTED); 251 254 252 255 /** @todo alignment */ … … 261 264 /* do the allocation. */ 262 265 ULONG ulPhys = ~0UL; 263 int rc = KernVMAlloc(cb, VMDHA_FIXED | VMDHA_CONTIG | (PhysHighest < _4G ? VMDHA_16M : 0),266 int rc = KernVMAlloc(cb, VMDHA_FIXED | VMDHA_CONTIG | (PhysHighest < _4G - 1 ? VMDHA_16M : 0), 264 267 &pMemOs2->Core.pv, (PPVOID)&ulPhys, NULL); 265 268 if (!rc)
Note:
See TracChangeset
for help on using the changeset viewer.