Changeset 30430 in vbox
- Timestamp:
- Jun 24, 2010 12:41:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r30324 r30430 5162 5162 RTLogRelLogger(loggerRelease, 0, ~0U, "Host RAM: %uMB RAM, available: %uMB\n", 5163 5163 cMbHostRam, cMbHostRamAvail); 5164 5165 #if defined(RT_OS_WINDOWS) && HC_ARCH_BITS == 32 5166 /* @todo move this in RT, but too lazy now */ 5167 uint32_t maxRAMArch; 5168 SYSTEM_INFO sysInfo; 5169 GetSystemInfo(&sysInfo); 5170 5171 if (sysInfo.lpMaximumApplicationAddress >= (LPVOID)0xC0000000) /* 3.0 GB */ 5172 maxRAMArch = UINT32_C(2560); 5173 else 5174 if (sysInfo.lpMaximumApplicationAddress > (LPVOID)0xA0000000) /* 2.5 GB */ 5175 maxRAMArch = UINT32_C(2048); 5176 else 5177 maxRAMArch = UINT32_C(1500); 5178 5179 RTLogRelLogger(loggerRelease, 0, ~0U, "Maximum user application address: %p\n", sysInfo.lpMaximumApplicationAddress); 5180 RTLogRelLogger(loggerRelease, 0, ~0U, "Maximum allowed guest RAM size: %d MB\n", maxRAMArch); 5181 #endif 5164 5182 5165 5183 /* the package type is interesting for Linux distributions */
Note:
See TracChangeset
for help on using the changeset viewer.