Changeset 100310 in vbox for trunk/src/VBox/Runtime/r3/posix
- Timestamp:
- Jun 28, 2023 10:26:46 AM (20 months ago)
- svn:sync-xref-src-repo-rev:
- 158025
- Location:
- trunk/src/VBox/Runtime/r3/posix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/RTMemProtect-posix.cpp
r98103 r100310 44 44 #include <iprt/errcore.h> 45 45 #include <iprt/string.h> 46 #include <iprt/system.h> 46 47 47 48 #include <errno.h> … … 93 94 * Align the request. 94 95 */ 95 cb += (uintptr_t)pv & PAGE_OFFSET_MASK;96 pv = (void *)((uintptr_t)pv & ~ PAGE_OFFSET_MASK);96 cb += (uintptr_t)pv & RTSystemGetPageOffsetMask(); 97 pv = (void *)((uintptr_t)pv & ~RTSystemGetPageOffsetMask()); 97 98 98 99 /* -
trunk/src/VBox/Runtime/r3/posix/rtmempage-exec-mmap-posix.cpp
r98103 r100310 47 47 #include <iprt/param.h> 48 48 #include <iprt/string.h> 49 #include <iprt/system.h> 49 50 50 51 #include <stdlib.h> … … 106 107 Assert(cb > 0); 107 108 NOREF(pszTag); 108 cb = RT _ALIGN_Z(cb, PAGE_SIZE);109 cb = RTSystemPageAlignSize(cb); 109 110 110 111 /* … … 143 144 AssertPtr(pv); 144 145 Assert(cb > 0); 145 Assert(!((uintptr_t)pv & PAGE_OFFSET_MASK));146 cb = RT _ALIGN_Z(cb, PAGE_SIZE);146 Assert(!((uintptr_t)pv & RTSystemGetPageOffsetMask())); 147 cb = RTSystemPageAlignSize(cb); 147 148 148 149 /*
Note:
See TracChangeset
for help on using the changeset viewer.