Changeset 65590 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Feb 2, 2017 2:10:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/vbox.dsl
r65582 r65590 1591 1591 CreateDwordField (CRS, \_SB.PCI0.MEM3._MIN, RAMT) 1592 1592 CreateDwordField (CRS, \_SB.PCI0.MEM3._LEN, RAMR) 1593 // CreateQwordField (TOM, \_SB.PCI0.MEM4._MIN, TM4N)1594 // CreateQwordField (TOM, \_SB.PCI0.MEM4._MAX, TM4X)1595 // CreateQwordField (TOM, \_SB.PCI0.MEM4._LEN, TM4L)1596 1593 1597 1594 Store (MEML, RAMT) 1598 1595 Subtract (0xffe00000, RAMT, RAMR) 1599 1596 1600 // if (LNotEqual (PMEM, 0x00000000)) 1601 // { 1602 // Store (0x10000000, Local1) // 16TB in units of 64KB 1603 // Multiply (PMEM, 0x10000, TM4N) // PMEM in units of 64KB 1604 // Multiply (Local1, 0x10000, TM4L) 1605 // Subtract (Add (TM4N, TM4L), 1, TM4X) // MAX = MIN + LEN - 1 1606 // 1607 // ConcatenateResTemplate (CRS, TOM, Local2) 1608 // 1609 // Return (Local2) 1610 // } 1597 if (LNotEqual (PMEM, 0x00000000)) 1598 { 1599 CreateQwordField (TOM, \_SB.PCI0.MEM4._MIN, TM4N) 1600 CreateQwordField (TOM, \_SB.PCI0.MEM4._MAX, TM4X) 1601 CreateQwordField (TOM, \_SB.PCI0.MEM4._LEN, TM4L) 1602 1603 Store (0x10000000, Local1) // 16TB in units of 64KB 1604 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 1607 1608 ConcatenateResTemplate (CRS, TOM, Local2) 1609 1610 Return (Local2) 1611 } 1611 1612 1612 1613 Return (CRS)
Note:
See TracChangeset
for help on using the changeset viewer.