VirtualBox

Ignore:
Timestamp:
Feb 1, 2017 8:04:19 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113229
Message:

DevACPI: 64-bit prefetch window is 1G-aligned, mostly paranoia

File:
1 edited

Legend:

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

    r65573 r65576  
    31323132    /*
    31333133     * Calculate the sizes for the low region and for the 64-bit prefetchable memory.
     3134     * The latter starts never below 4G and is 1G-aligned.
    31343135     */
    31353136    const uint64_t offRamHole = _4G - cbRamHole;
    31363137    if (pThis->fPciPref64Enabled)
    3137         pThis->u64PciPref64 = pThis->u64RamSize  < _4G ? _4G : pThis->u64RamSize; /* MEM4 */
     3138        pThis->u64PciPref64 = pThis->u64RamSize  < _4G ? _4G : RT_ALIGN_64(pThis->u64RamSize, _1G); /* MEM4 */
    31383139    uint64_t cbRamLow = offRamHole < pThis->u64RamSize ? offRamHole : pThis->u64RamSize;
    31393140    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