VirtualBox

Changeset 20723 in vbox for trunk


Ignore:
Timestamp:
Jun 19, 2009 1:14:16 PM (16 years ago)
Author:
vboxsync
Message:

Deal better with fatal assertions & the vga lock.

File:
1 edited

Legend:

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

    r20458 r20723  
    38133813#ifndef IN_RING3
    38143814        rc = PGMShwModifyPage(PDMDevHlpGetVMCPU(pThis->CTX_SUFF(pDevIns)), GCPtr, 1, X86_PTE_RW, ~(uint64_t)X86_PTE_RW);
     3815        PDMCritSectLeave(&pThis->lock);
    38153816        if (RT_SUCCESS(rc))
    3816         {
    3817             PDMCritSectLeave(&pThis->lock);
    38183817            return VINF_SUCCESS;
    3819         }
    3820         else
    3821             AssertMsgFailed(("PGMShwModifyPage -> rc=%d\n", rc));
     3818
     3819        AssertMsgFailed(("PGMShwModifyPage -> rc=%d\n", rc));
    38223820#else /* IN_RING3 : We don't have any virtual page address of the access here. */
     3821        PDMCritSectLeave(&pThis->lock);
    38233822        Assert(GCPtr == 0);
     3823        return VINF_SUCCESS;
     3824#endif
     3825    }
     3826    else
     3827    {
    38243828        PDMCritSectLeave(&pThis->lock);
    3825         return VINF_SUCCESS;
    3826 #endif
    3827     }
    3828     else
    38293829        AssertMsgFailed(("PGMHandlerPhysicalPageTempOff -> rc=%d\n", rc));
    3830 
    3831     PDMCritSectLeave(&pThis->lock);
     3830    }
    38323831    return rc;
    38333832}
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