VirtualBox

Changeset 65619 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Feb 6, 2017 10:36:00 AM (8 years ago)
Author:
vboxsync
Message:

DevACPI: make the condition for u64PciPref64 and cbRamLow more obvious and for u64PciPref64 it's actually sufficient to add cbRamHole, not offRamHole

File:
1 edited

Legend:

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

    r65594 r65619  
    31383138    {
    31393139        /* Activate MEM4 */
    3140         if (offRamHole >= pThis->u64RamSize)
     3140        if (pThis->u64RamSize > offRamHole)
     3141            pThis->u64PciPref64 = RT_ALIGN_64(pThis->u64RamSize + cbRamHole, _1G);
     3142        else
    31413143            pThis->u64PciPref64 = _4G;
    3142         else
    3143             pThis->u64PciPref64 = RT_ALIGN_64(pThis->u64RamSize + offRamHole, _1G);
    3144     }
    3145     uint64_t cbRamLow = offRamHole < pThis->u64RamSize ? offRamHole : pThis->u64RamSize;
     3144    }
     3145    uint64_t cbRamLow = pThis->u64RamSize > offRamHole ? offRamHole : pThis->u64RamSize;
    31463146    if (cbRamLow > UINT32_C(0xffe00000)) /* See MEM3. */
    31473147    {
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