VirtualBox

Changeset 29574 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 17, 2010 4:07:08 PM (15 years ago)
Author:
vboxsync
Message:

Cast problems (?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GMMR0.cpp

    r29572 r29574  
    26502650
    26512651    /* Modify the page structure. */
    2652     pPage->Shared.pfn     = (uint32_t)(HCPhys >> PAGE_SHIFT);
     2652    pPage->Shared.pfn     = (uint32_t)(uint64_t)(HCPhys >> PAGE_SHIFT);
    26532653    pPage->Shared.cRefs   = 1;
    26542654    pPage->Common.u2State = GMM_PAGE_STATE_SHARED;
     
    38213821                }
    38223822
    3823                 Log(("Replace existing page guest %RGp host %RHp -> %RHp\n", paPageDesc[i].GCPhys, paPageDesc[i].HCPhys, pPage->Shared.pfn << PAGE_SHIFT));
     3823                Log(("Replace existing page guest %RGp host %RHp -> %RHp\n", paPageDesc[i].GCPhys, paPageDesc[i].HCPhys, ((uint64_t)pPage->Shared.pfn) << PAGE_SHIFT));
    38243824
    38253825                /* Calculate the virtual address of the local page. */
     
    38783878
    38793879                /* Pass along the new physical address & page id. */
    3880                 paPageDesc[i].HCPhys        = pPage->Shared.pfn << PAGE_SHIFT;
     3880                paPageDesc[i].HCPhys        = ((uint64_t)pPage->Shared.pfn) << PAGE_SHIFT;
    38813881                paPageDesc[i].uHCPhysPageId = pGlobalRegion->paHCPhysPageID[i];
    38823882            }
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