VirtualBox

Changeset 60042 in vbox


Ignore:
Timestamp:
Mar 15, 2016 1:53:18 PM (9 years ago)
Author:
vboxsync
Message:

DevSVGA-SVGA: some missing typecasts

File:
1 edited

Legend:

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

    r59850 r60042  
    13771377            {
    13781378                /* Pointer to the next physical page of descriptors. */
    1379                 GCPhys = GCPhysBase = desc.ppn << PAGE_SHIFT;
     1379                GCPhys = GCPhysBase = (RTGCPHYS)desc.ppn << PAGE_SHIFT;
    13801380            }
    13811381            else
     
    13881388                }
    13891389
    1390                 pSVGAState->aGMR[idGMR].paDesc[iDescriptor].GCPhys     = desc.ppn << PAGE_SHIFT;
     1390                pSVGAState->aGMR[idGMR].paDesc[iDescriptor].GCPhys     = (RTGCPHYS)desc.ppn << PAGE_SHIFT;
    13911391                pSVGAState->aGMR[idGMR].paDesc[iDescriptor++].numPages = desc.numPages;
    13921392                pSVGAState->aGMR[idGMR].cbTotal += desc.numPages * PAGE_SIZE;
     
    29212921                        GCPhys = (pPage64[0] << PAGE_SHIFT) & 0x00000FFFFFFFFFFFULL;    /* seeing rubbish in the top bits with certain linux guests*/
    29222922                    else
    2923                         GCPhys = pPage32[0] << PAGE_SHIFT;
     2923                        GCPhys = (RTGCPHYS)pPage32[0] << PAGE_SHIFT;
    29242924
    29252925                    pGMR->paDesc[0].GCPhys    = GCPhys;
     
    29322932                            GCPhys = (pPage64[i] << PAGE_SHIFT) & 0x00000FFFFFFFFFFFULL;    /* seeing rubbish in the top bits with certain linux guests*/
    29332933                        else
    2934                             GCPhys = pPage32[i] << PAGE_SHIFT;
     2934                            GCPhys = (RTGCPHYS)pPage32[i] << PAGE_SHIFT;
    29352935
    29362936                        /* Continuous physical memory? */
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