VirtualBox

Changeset 12965 in vbox


Ignore:
Timestamp:
Oct 2, 2008 10:26:14 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
37397
Message:

spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMGC/MMRamGC.cpp

    r9282 r12965  
    7878}
    7979
     80
    8081/**
    8182 * Remove MMGCRam Hypervisor page fault handler.
     
    114115}
    115116
     117
    116118/**
    117119 * Write data in guest context with #PF control.
     
    125127MMGCDECL(int) MMGCRamWrite(PVM pVM, void *pDst, void *pSrc, size_t cb)
    126128{
    127     int rc;
    128 
    129129    TRPMSaveTrap(pVM);  /* save the current trap info, because it will get trashed if our access failed. */
    130130
    131131    MMGCRamRegisterTrapHandler(pVM);
    132     rc = MMGCRamWriteNoTrapHandler(pDst, pSrc, cb);
     132    int rc = MMGCRamWriteNoTrapHandler(pDst, pSrc, cb);
    133133    MMGCRamDeregisterTrapHandler(pVM);
    134134    if (VBOX_FAILURE(rc))
     
    158158    {
    159159        /* Must be a read violation. */
    160         AssertReturn(!(TRPMGetErrorCode(pVM) & X86_TRAP_PF_RW), VERR_INTERNAL_ERROR); 
     160        AssertReturn(!(TRPMGetErrorCode(pVM) & X86_TRAP_PF_RW), VERR_INTERNAL_ERROR);
    161161        pRegFrame->eip = (uintptr_t)&MMGCRamRead_Error;
    162162        return VINF_SUCCESS;
     
    170170    {
    171171        /* Must be a write violation. */
    172         AssertReturn(TRPMGetErrorCode(pVM) & X86_TRAP_PF_RW, VERR_INTERNAL_ERROR); 
     172        AssertReturn(TRPMGetErrorCode(pVM) & X86_TRAP_PF_RW, VERR_INTERNAL_ERROR);
    173173        pRegFrame->eip = (uintptr_t)&MMGCRamWrite_Error;
    174174        return VINF_SUCCESS;
     
    255255    }
    256256
    257     /* 
    258      * #PF is not handled - cause guru meditation. 
     257    /*
     258     * #PF is not handled - cause guru meditation.
    259259     */
    260260    return VERR_INTERNAL_ERROR;
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