VirtualBox

Changeset 65577 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 1, 2017 8:07:03 PM (8 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
113230
Message:

vbox.dsl: change ACPI standard to 2 to get 64-bit math and properly calculate the 64-bit prefetch window

File:
1 edited

Legend:

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

    r65573 r65577  
    1414// hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
    1515
    16 DefinitionBlock ("DSDT.aml", "DSDT", 1, "VBOX  ", "VBOXBIOS", 2)
     16DefinitionBlock ("DSDT.aml", "DSDT", 2, "VBOX  ", "VBOXBIOS", 2)
    1717{
    1818    // Declare debugging ports withing SystemIO
     
    15781578                    0x0000000000000000,       // _GRA: Granularity.
    15791579                    0x0000000100000000,       // _MIN: Min address, 4GB, will be overwritten.
    1580                     0x00000020ffffffff,       // _MAX: Max possible address, will be overwritten.
     1580                    0x00000080ffffffff,       // _MAX: Max possible address, will be overwritten.
    15811581                    0x0000000000000000,       // _TRA: Translation
    1582                     0x0000002000000000,       // _LEN: Range length (calculated dynamically)
     1582                    0x0000008000000000,       // _LEN: Range length (def. 512G, calculated dynamically)
    15831583                    ,                         // ResourceSourceIndex: Optional field left blank
    15841584                    ,                         // ResourceSource:      Optional field left blank
     
    16001600                if (LNotEqual (PMEM, 0x00000000))
    16011601                {
    1602                     Store (PMEM, TM4N)
    1603                     ShiftLeft (TM4N, 16, TM4N)
    1604 
    1605                     Store (PMEM, TM4X)
    1606                     Store (0x10000000, TM4L)      // Size 16TB
    1607                     Add (TM4X, TM4L, TM4X)
    1608                     Subtract (TM4X, 1, TM4X)
    1609                     ShiftLeft (TM4X, 16, TM4X)    // MAX = MIN + LEN - (1 << 16)
    1610 //                    Add (TM4X, 0xffff, TM4X)    // For some reason this operation prevents
    1611                                                   // at least Linux from determining this
    1612                                                   // resource!
    1613                     ShiftLeft (TM4L, 16, TM4L)
     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
    16141606
    16151607                    ConcatenateResTemplate (CRS, TOM, Local2)
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