VirtualBox

Changeset 17617 in vbox


Ignore:
Timestamp:
Mar 10, 2009 11:10:12 AM (16 years ago)
Author:
vboxsync
Message:

vbox.dsl: a shot at working around the 32-bit compile issue (I'm not quite convinced it will work).

Location:
trunk/src/VBox/Devices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r17440 r17617  
    391391        $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
    392392
     393vboxaml.hex:: $$(PATH_DevicesR3)/vboxaml.hex
     394
     395
    393396# For finding PCIInternal.h from VBox/pci.h.
    394397Bus/DevPCI.cpp_INCS     = Bus
  • trunk/src/VBox/Devices/PC/vbox.dsl

    r17590 r17617  
    896896                    ReadWrite,
    897897                    0x0000000000000000,         // _GRA: Granularity.
    898                     0x0000000100000000,         // _LEN: Min address, 4GB.
    899                     0x00000fffffffffff,         // _MAX: Max possible address, 16TB.
     898                    0 /*0x0000000100000000*/,   // _MIN: Min address, 4GB.
     899                    0 /*0x00000fffffffffff*/,   // _MAX: Max possible address, 16TB.
    900900                    0x0000000000000000,         // _TRA: Translation
    901901                    0x0000000000000000,         // _LEN: Range length (calculated dynamically)
     
    910910                CreateDwordField (CRS, \_SB.PCI0.MEM3._MIN, RAMT)
    911911                CreateDwordField (CRS, \_SB.PCI0.MEM3._LEN, RAMR)
    912                 CreateDwordField (TOM, \_SB.PCI0.MEM4._LEN, TM4L)
     912                CreateQwordField (TOM, \_SB.PCI0.MEM4._LEN, TM4L)
     913                CreateQwordField (TOM, \_SB.PCI0.MEM4._LEN, TM4N)
     914                CreateQwordField (TOM, \_SB.PCI0.MEM4._LEN, TM4X)
    913915
    914916                Store (MEML, RAMT)
     
    922924                    // (MEMH is the memory above 4GB specified in 64KB units.)
    923925                    //
    924                     ShiftLeft (MEMH, 16, Local0)
    925                     Store (Local0, TM4L)
    926                     ConcatenateResTemplate (CRS, TOM, Local1)
    927                     Return (Local1)
     926                    // Note: ACPI v2 doesn't do 32-bit integers. IASL may fail on
     927                    //       seeing 64-bit constants and the code probably wont work.
     928                    //
     929                    Store (1, TM4N)
     930                    ShiftLeft (TM4N, 32, TM4N)
     931
     932                    Store (0x00000fff, TM4X)
     933                    ShiftLeft (TM4X, 32, TM4X)
     934                    Or (TM4X, 0xffffffff, TM4X)
     935
     936                    Store (MEMH, TM4L)
     937                    ShiftLeft (TM4L, 16, TM4L)
     938
     939                    ConcatenateResTemplate (CRS, TOM, Local2)
     940                    Return (Local2)
    928941                }
    929942
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