VirtualBox

Changeset 9282 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 2, 2008 8:36:10 AM (17 years ago)
Author:
vboxsync
Message:

Type and cast corrections

Location:
trunk/src/VBox/VMM
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/IOMInternal.h

    r9212 r9282  
    428428 * @param   pvUser      Pointer to the MMIO range entry.
    429429 */
    430 IOMDECL(int) IOMMMIOHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, void *pvFault, RTGCPHYS GCPhysFault, void *pvUser);
     430IOMDECL(int) IOMMMIOHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser);
    431431
    432432/**
  • trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp

    r9212 r9282  
    942942 * @param   pvUser      Pointer to the MMIO ring-3 range entry.
    943943 */
    944 IOMDECL(int) IOMMMIOHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pCtxCore, void *pvFault, RTGCPHYS GCPhysFault, void *pvUser)
     944IOMDECL(int) IOMMMIOHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pCtxCore, RTGCPTR pvFault, RTGCPHYS GCPhysFault, void *pvUser)
    945945{
    946946    STAM_PROFILE_START(&pVM->iom.s.StatGCMMIOHandler, a);
    947     Log3(("IOMMMIOHandler: GCPhys=%RGp uErr=%#x pvFault=%p eip=%RGv\n",
    948           GCPhysFault, uErrorCode, pvFault, pCtxCore->eip));
     947    Log3(("IOMMMIOHandler: GCPhys=%RGp uErr=%#x pvFault=%VGv eip=%RGv\n",
     948          GCPhysFault, (uint32_t)uErrorCode, pvFault, pCtxCore->eip));
    949949
    950950    PIOMMMIORANGE pRange = (PIOMMMIORANGE)pvUser;
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r9064 r9282  
    299299PGMDECL(int)     PGMTrap0eHandler(PVM pVM, RTGCUINT uErr, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault)
    300300{
    301     LogFlow(("PGMTrap0eHandler: uErr=%#x pvFault=%VGv eip=%VGv\n", uErr, pvFault, pRegFrame->eip));
     301    LogFlow(("PGMTrap0eHandler: uErr=%#x pvFault=%VGv eip=%VGv\n", (uint32_t)uErr, pvFault, pRegFrame->eip));
    302302    STAM_PROFILE_START(&pVM->pgm.s.StatGCTrap0e, a);
    303303    STAM_STATS({ pVM->pgm.s.CTXSUFF(pStatTrap0eAttribution) = NULL; } );
  • trunk/src/VBox/VMM/VMMGC/MMRamGC.cpp

    r9212 r9282  
    138138     * And mark the relevant guest page as accessed and dirty.
    139139     */
    140     PGMGstModifyPage(pVM, (RTGCPTR)pDst, cb, X86_PTE_A | X86_PTE_D, ~(uint64_t)(X86_PTE_A | X86_PTE_D));
     140    PGMGstModifyPage(pVM, (RTGCPTR)(RTRCUINTPTR)pDst, cb, X86_PTE_A | X86_PTE_D, ~(uint64_t)(X86_PTE_A | X86_PTE_D));
    141141
    142142    return rc;
  • trunk/src/VBox/VMM/VMMGC/SELMGC.cpp

    r9212 r9282  
    205205        /** @todo should check if any affected selectors are loaded. */
    206206        uint32_t cb;
    207         rc = EMInterpretInstruction(pVM, pRegFrame, (RTGCPTR)pvFault, &cb);
     207        rc = EMInterpretInstruction(pVM, pRegFrame, (RTGCPTR)(RTRCUINTPTR)pvFault, &cb);
    208208        if (VBOX_SUCCESS(rc) && cb)
    209209        {
     
    291291     */
    292292    uint32_t cb;
    293     int rc = EMInterpretInstruction(pVM, pRegFrame, (RTGCPTR)pvFault, &cb);
     293    int rc = EMInterpretInstruction(pVM, pRegFrame, (RTGCPTR)(RTRCUINTPTR)pvFault, &cb);
    294294    if (VBOX_SUCCESS(rc) && cb)
    295295    {
     
    321321                    {
    322322                        /* Shadow page table might be out of sync */
    323                         rc = PGMPrefetchPage(pVM, (RTGCPTR)((uint8_t *)pGuestTSS + offIntRedirBitmap + i*8));
     323                        rc = PGMPrefetchPage(pVM, (RTGCPTR)(RTRCUINTPTR)((uint8_t *)pGuestTSS + offIntRedirBitmap + i*8));
    324324                        if (VBOX_FAILURE(rc))
    325325                        {
     
    440440                /** @todo might cross page boundary */
    441441                fTriedAlready = true;
    442                 rc = PGMPrefetchPage(pVM, (RTGCPTR)GCPtrTss);
     442                rc = PGMPrefetchPage(pVM, (RTGCPTR)(RTRCUINTPTR)GCPtrTss);
    443443                if (rc != VINF_SUCCESS)
    444444                    return rc;
  • trunk/src/VBox/VMM/VMMGC/TRPMGC.cpp

    r9223 r9282  
    115115
    116116    AssertMsg(offRange < (uint32_t)cbIDT+1, ("pvFault=%VGv GCPtrIDT=%VGv-%VGv pvRange=%VGv\n", pvFault, GCPtrIDT, GCPtrIDTEnd, pvRange));
    117     Assert((RTGCPTR)pvRange == GCPtrIDT);
     117    Assert((RTGCPTR)(RTRCUINTPTR)pvRange == GCPtrIDT);
    118118
    119119#if 0
  • trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp

    r9231 r9282  
    467467     * accessing user code. need to handle it somehow in future!
    468468     */
    469     uint8_t *pu8Code;
    470     if (SELMValidateAndConvertCSAddr(pVM, pRegFrame->eflags, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid, (RTGCPTR)pRegFrame->eip, (PRTGCPTR)&pu8Code) == VINF_SUCCESS)
    471     {
     469    RTGCPTR GCPtr;
     470    if (SELMValidateAndConvertCSAddr(pVM, pRegFrame->eflags, pRegFrame->ss, pRegFrame->cs, &pRegFrame->csHid, (RTGCPTR)pRegFrame->eip, &GCPtr) == VINF_SUCCESS)
     471    {
     472        uint8_t *pu8Code = (uint8_t *)GCPtr;
    472473        /*
    473474         * First skip possible instruction prefixes, such as:
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