Changeset 65594 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 2, 2017 5:19:11 PM (8 years ago)
- Location:
- trunk/src/VBox/Devices/PC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevACPI.cpp
r65576 r65594 3136 3136 const uint64_t offRamHole = _4G - cbRamHole; 3137 3137 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 } 3139 3145 uint64_t cbRamLow = offRamHole < pThis->u64RamSize ? offRamHole : pThis->u64RamSize; 3140 3146 if (cbRamLow > UINT32_C(0xffe00000)) /* See MEM3. */ -
trunk/src/VBox/Devices/PC/vbox.dsl
r65590 r65594 1577 1577 ReadWrite, 1578 1578 0x0000000000000000, // _GRA: Granularity. 1579 0x0000000100000000, // _MIN: Min address, 4GB, will be overwritten.1580 0x00000 080ffffffff, // _MAX: Max possible address, will be overwritten.1579 0x0000000100000000, // _MIN: Min address, def. 4GB, will be overwritten. 1580 0x00000fffffffffff, // _MAX: Max possible address, 16TB-1, fixed. 1581 1581 0x0000000000000000, // _TRA: Translation 1582 0x00000 08000000000, // _LEN: Range length (def. 512G, calculated dynamically)1582 0x00000fff00000000, // _LEN: Range length (calculated from _MIN) 1583 1583 , // ResourceSourceIndex: Optional field left blank 1584 1584 , // ResourceSource: Optional field left blank … … 1601 1601 CreateQwordField (TOM, \_SB.PCI0.MEM4._LEN, TM4L) 1602 1602 1603 Store (0x10000000, Local1) // 16TB in units of 64KB1604 1603 Multiply (PMEM, 0x10000, TM4N) // PMEM in units of 64KB 1605 Multiply (Local1, 0x10000, TM4L) 1606 Subtract (Add (TM4N, TM4L), 1, TM4X) // MAX = MIN + LEN - 1 1604 Add (Subtract (TM4X, TM4N), 1, TM4L) // determine LEN, MAX is already there 1607 1605 1608 1606 ConcatenateResTemplate (CRS, TOM, Local2)
Note:
See TracChangeset
for help on using the changeset viewer.