VirtualBox

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


Ignore:
Timestamp:
Feb 2, 2017 2:10:51 PM (8 years ago)
Author:
vboxsync
Message:

vbox.dsl: re-enable MEM4 and do CreateQwordField only if we really need it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/vbox.dsl

    r65582 r65590  
    15911591                CreateDwordField (CRS, \_SB.PCI0.MEM3._MIN, RAMT)
    15921592                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)
    15961593
    15971594                Store (MEML, RAMT)
    15981595                Subtract (0xffe00000, RAMT, RAMR)
    15991596
    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                }
    16111612
    16121613                Return (CRS)
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