VirtualBox

Changeset 9212 in vbox for trunk/src/VBox/Devices/Graphics


Ignore:
Timestamp:
May 29, 2008 9:38:38 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
31380
Message:

Major changes for sizeof(RTGCPTR) == uint64_t.
Introduced RCPTRTYPE for pointers valid in raw mode only (RTGCPTR32).

Disabled by default. Enable by adding VBOX_WITH_64_BITS_GUESTS to your LocalConfig.kmk.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA.cpp

    r8642 r9212  
    52315231    AssertMsgRC(rc, ("PDMDevHlpMMIO2Register(%#x,) -> %Rrc\n", pData->vram_size, rc));
    52325232
    5233     rc = PDMDevHlpMMHyperMapMMIO2(pDevIns, 0 /* iRegion */, 0 /* off */,  VGA_MAPPING_SIZE, "VGA VRam", &pData->vram_ptrGC);
     5233    RTGCPTR pGCMapping = 0;
     5234    rc = PDMDevHlpMMHyperMapMMIO2(pDevIns, 0 /* iRegion */, 0 /* off */,  VGA_MAPPING_SIZE, "VGA VRam", &pGCMapping);
    52345235    AssertMsgRC(rc, ("MMR3HyperMapGCPhys(%#x,) -> %Rrc\n", pData->vram_size, rc));
     5236    Assert(!(pGCMapping >> 32ULL));
     5237    pData->vram_ptrGC = pGCMapping;
    52355238
    52365239    /*
  • trunk/src/VBox/Devices/Graphics/DevVGA.h

    r8155 r9212  
    251251    RTGCPHYS32                  GCPhysVRAM;
    252252    /** Pointer to GC vram mapping. */
    253     GCPTRTYPE(uint8_t *)        vram_ptrGC;
     253    RCPTRTYPE(uint8_t *)        vram_ptrGC;
    254254/** @todo r=bird: bool not RTUINT (my fault I guess). */
    255255    /** LFB was updated flag. */
     
    260260    RTUINT                      fR0Enabled;
    261261    /** Pointer to vgaGCLFBAccessHandler(). */
    262     RTGCPTR                     GCPtrLFBHandler;
     262    RTGCPTR32                   GCPtrLFBHandler;
    263263    /** Flag indicating that there are dirty bits. This is used to optimize the handler resetting. */
    264264    bool                        fHaveDirtyBits;
     
    268268    R3R0PTRTYPE(PPDMDEVINS)     pDevInsHC;
    269269    /* * Pointer to the device instance - GC Ptr. */
    270     /*GCPTRTYPE(PPDMDEVINS)   pDevInsGC;*/
     270    /*RCPTRTYPE(PPDMDEVINS)   pDevInsGC;*/
    271271
    272272    /** The display port base interface. */
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