VirtualBox

Ignore:
Timestamp:
Feb 2, 2017 5:19:11 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113262
Message:

ACPI: properly determine PciPref64 for bigger RAM sizes; that window will now always end at 16TB-1 and only MIN+LEN is calculated dynamically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/DevACPI.cpp

    r65576 r65594  
    31363136    const uint64_t offRamHole = _4G - cbRamHole;
    31373137    if (pThis->fPciPref64Enabled)
    3138         pThis->u64PciPref64 = pThis->u64RamSize  < _4G ? _4G : RT_ALIGN_64(pThis->u64RamSize, _1G); /* MEM4 */
     3138    {
     3139        /* Activate MEM4 */
     3140        if (offRamHole >= pThis->u64RamSize)
     3141            pThis->u64PciPref64 = _4G;
     3142        else
     3143            pThis->u64PciPref64 = RT_ALIGN_64(pThis->u64RamSize + offRamHole, _1G);
     3144    }
    31393145    uint64_t cbRamLow = offRamHole < pThis->u64RamSize ? offRamHole : pThis->u64RamSize;
    31403146    if (cbRamLow > UINT32_C(0xffe00000)) /* See MEM3. */
Note: See TracChangeset for help on using the changeset viewer.

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