Changeset 100307 in vbox
- Timestamp:
- Jun 28, 2023 10:17:34 AM (17 months ago)
- Location:
- trunk
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/mangling.h
r100171 r100307 2434 2434 # define RTSymlinkRead RT_MANGLER(RTSymlinkRead) 2435 2435 # define RTSymlinkReadA RT_MANGLER(RTSymlinkReadA) 2436 # define RTSystemGetPageSize RT_MANGLER(RTSystemGetPageSize) 2437 # define RTSystemGetPageOffsetMask RT_MANGLER(RTSystemGetPageOffsetMask) 2438 # define RTSystemGetPageShift RT_MANGLER(RTSystemGetPageShift) 2439 # define RTSystemPageAlignSize RT_MANGLER(RTSystemPageAlignSize) 2436 2440 # define RTSystemQueryFirmwareType RT_MANGLER(RTSystemQueryFirmwareType) 2437 2441 # define RTSystemQueryFirmwareBoolean RT_MANGLER(RTSystemQueryFirmwareBoolean) -
trunk/include/iprt/system.h
r98103 r100307 163 163 */ 164 164 RTDECL(int) RTSystemQueryUnavailableRam(uint64_t *pcb); 165 166 /** 167 * Returns the page size in bytes of the system. 168 * 169 * @returns Page size in bytes. 170 */ 171 RTDECL(uint32_t) RTSystemGetPageSize(void); 172 173 /** 174 * Returns the page shift in bits of the system. 175 * 176 * @returns Page shift in bits. 177 */ 178 RTDECL(uint32_t) RTSystemGetPageShift(void); 179 180 /** 181 * Returns the page offset mask of the system. 182 * 183 * @returns Page offset maske. 184 */ 185 RTDECL(uintptr_t) RTSystemGetPageOffsetMask(void); 186 187 /** 188 * Aligns the given size to the systems page size. 189 * 190 * @returns Byte size aligned to the systems page size. 191 * @param cb The size in bytes to align. 192 */ 193 RTDECL(size_t) RTSystemPageAlignSize(size_t cb); 165 194 166 195 -
trunk/src/VBox/Additions/common/VBoxGuest/linux/combined-agnostic.c
r100191 r100307 167 167 #undef LOG_GROUP 168 168 #include "generic/mppresent-generic.c" 169 #undef LOG_GROUP 170 #include "generic/system-page-size-generic.c" 169 171 #undef LOG_GROUP 170 172 #include "VBox/log-vbox.c" -
trunk/src/VBox/Additions/common/VBoxGuest/linux/files_vboxguest
r100191 r100307 74 74 ${PATH_ROOT}/include/iprt/stdint.h=>include/iprt/stdint.h \ 75 75 ${PATH_ROOT}/include/iprt/string.h=>include/iprt/string.h \ 76 ${PATH_ROOT}/include/iprt/system.h=>include/iprt/system.h \ 76 77 ${PATH_ROOT}/include/iprt/thread.h=>include/iprt/thread.h \ 77 78 ${PATH_ROOT}/include/iprt/time.h=>include/iprt/time.h \ … … 198 199 ${PATH_ROOT}/src/VBox/Runtime/generic/errvars-generic.cpp=>generic/errvars-generic.c \ 199 200 ${PATH_ROOT}/src/VBox/Runtime/generic/mppresent-generic.cpp=>generic/mppresent-generic.c \ 201 ${PATH_ROOT}/src/VBox/Runtime/generic/system-page-size-generic.cpp=>generic/system-page-size-generic.c \ 200 202 ${PATH_ROOT}/src/VBox/Runtime/r0drv/alloc-r0drv.cpp=>r0drv/alloc-r0drv.c \ 201 203 ${PATH_ROOT}/src/VBox/Runtime/r0drv/alloc-r0drv.h=>r0drv/alloc-r0drv.h \ -
trunk/src/VBox/HostDrivers/Support/linux/combined-agnostic2.c
r98103 r100307 104 104 #include "generic/mppresent-generic.c" 105 105 #undef LOG_GROUP 106 #include "generic/system-page-size-generic.c" 107 #undef LOG_GROUP 106 108 #include "generic/uuid-generic.c" 107 109 #undef LOG_GROUP -
trunk/src/VBox/HostDrivers/Support/linux/files_vboxdrv
r98103 r100307 73 73 ${PATH_ROOT}/include/iprt/stdint.h=>include/iprt/stdint.h \ 74 74 ${PATH_ROOT}/include/iprt/string.h=>include/iprt/string.h \ 75 ${PATH_ROOT}/include/iprt/system.h=>include/iprt/system.h \ 75 76 ${PATH_ROOT}/include/iprt/thread.h=>include/iprt/thread.h \ 76 77 ${PATH_ROOT}/include/iprt/time.h=>include/iprt/time.h \ … … 198 199 ${PATH_ROOT}/src/VBox/Runtime/generic/errvars-generic.cpp=>generic/errvars-generic.c \ 199 200 ${PATH_ROOT}/src/VBox/Runtime/generic/mppresent-generic.cpp=>generic/mppresent-generic.c \ 201 ${PATH_ROOT}/src/VBox/Runtime/generic/system-page-size-generic.cpp=>generic/system-page-size-generic.c \ 200 202 ${PATH_ROOT}/src/VBox/Runtime/generic/uuid-generic.cpp=>generic/uuid-generic.c \ 201 203 ${PATH_ROOT}/src/VBox/Runtime/r0drv/alloc-r0drv.cpp=>r0drv/alloc-r0drv.c \ -
trunk/src/VBox/Runtime/Makefile.kmk
r100192 r100307 834 834 RuntimeBaseR3_SOURCES.x86 += \ 835 835 generic/RTMpGetDescription-generic.cpp \ 836 generic/system-page-size-generic.cpp \ 836 837 common/misc/zero.asm \ 837 838 common/misc/RTSystemIsInsideVM-amd64-x86.cpp \ … … 840 841 RuntimeBaseR3_SOURCES.amd64 += \ 841 842 generic/RTMpGetDescription-generic.cpp \ 843 generic/system-page-size-generic.cpp \ 842 844 common/misc/zero.asm \ 843 845 common/misc/RTSystemIsInsideVM-amd64-x86.cpp \ … … 868 870 RuntimeBaseR3_SOURCES.sparc32 += \ 869 871 generic/RTMpGetDescription-generic-stub.cpp \ 872 generic/system-page-size-generic.cpp \ 870 873 generic/RTSystemIsInsideVM-generic.cpp \ 871 874 common/asm/ASMBitFirstClear-generic.cpp \ … … 883 886 RuntimeBaseR3_SOURCES.sparc64 += \ 884 887 generic/RTMpGetDescription-generic-stub.cpp \ 888 generic/system-page-size-generic.cpp \ 885 889 generic/RTSystemIsInsideVM-generic.cpp \ 886 890 common/asm/ASMBitFirstClear-generic.cpp \ … … 1195 1199 r3/linux/semeventmulti-linux.cpp 1196 1200 RuntimeBaseR3_SOURCES.linux.arm64 += \ 1201 r3/posix/system-page-size-posix.cpp \ 1197 1202 r3/linux/semevent-linux.cpp \ 1198 1203 r3/linux/semeventmulti-linux.cpp 1199 1204 RuntimeBaseR3_SOURCES.linux.arm32 += \ 1205 r3/posix/system-page-size-posix.cpp \ 1200 1206 r3/linux/semevent-linux.cpp \ 1201 1207 r3/linux/semeventmulti-linux.cpp … … 1397 1403 common/string/mempcpy.cpp \ 1398 1404 common/string/memrchr.cpp \ 1405 generic/system-page-size-generic.cpp \ 1399 1406 r3/darwin/RTMpGetDescription-generic.cpp 1400 1407 RuntimeBaseR3_SOURCES.darwin.arm64 += \ 1401 1408 common/string/mempcpy.cpp \ 1402 1409 common/string/memrchr.cpp \ 1410 generic/system-page-size-generic.cpp \ 1403 1411 r3/darwin/RTMpGetDescription-generic.cpp 1404 1412 … … 3578 3586 generic/RTSemEventMultiWait-2-ex-generic.cpp \ 3579 3587 generic/RTSemEventMultiWaitNoResume-2-ex-generic.cpp \ 3588 generic/system-page-size-generic.cpp \ 3580 3589 generic/critsect-generic.cpp \ 3581 3590 generic/critsectrw-generic.cpp \ -
trunk/src/VBox/Runtime/r3/init.cpp
r98103 r100307 88 88 #include "internal/path.h" 89 89 #include "internal/process.h" 90 #include "internal/system.h" 90 91 #include "internal/thread.h" 91 92 #include "internal/time.h" … … 407 408 #endif /* !IN_GUEST && !RT_NO_GIP */ 408 409 410 #if defined(RT_ARCH_ARM64) && defined(RT_OS_LINUX) 411 /* 412 * Initialize the page size. 413 */ 414 rc = rtSystemInitPageSize(); 415 AssertMsgRCReturn(rc, ("Failed to initialize the page size, rc=%Rrc!\n", rc), rc); 416 #endif 417 409 418 /* 410 419 * Thread Thread database and adopt the caller thread as 'main'.
Note:
See TracChangeset
for help on using the changeset viewer.