VirtualBox

Changeset 30419 in vbox


Ignore:
Timestamp:
Jun 24, 2010 11:48:05 AM (14 years ago)
Author:
vboxsync
Message:

Accept higher guest ram values for 32-bit Windows hosts with a larger user virtual address space limit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/SystemPropertiesImpl.cpp

    r28800 r30419  
    205205#if HC_ARCH_BITS == 32 && !defined(RT_OS_DARWIN)
    206206# ifdef RT_OS_WINDOWS
    207     maxRAMArch = UINT32_C(1500);
     207    SYSTEMINFO sysInfo;
     208    GetSystemInfo(&sysInfo);
     209
     210    if (sysInfo.lpMaximumApplicationAddress >= 0xC000000)   /* 3.0 GB */
     211        maxRAMArch = UINT32_C(2560);
     212    else
     213    if (sysInfo.lpMaximumApplicationAddress > 0xA000000)    /* 2.5 GB */
     214        maxRAMArch = UINT32_C(2048);
     215    else
     216        maxRAMArch = UINT32_C(1500);
    208217# else
    209218    maxRAMArch = UINT32_C(2560);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette