VirtualBox

Changeset 45808 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Apr 29, 2013 12:41:07 PM (12 years ago)
Author:
vboxsync
Message:

VMM,DevVGA: Don't resolve RC symbols when HM is enabled (part 1).

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAll.cpp

    r45799 r45808  
    24252425 * @param   pVM         Pointer to the VM.
    24262426 */
     2427#if defined(VBOX_STRICT) && defined(IN_RING3)
     2428int pgmLockDebug(PVM pVM, RT_SRC_POS_DECL)
     2429#else
    24272430int pgmLock(PVM pVM)
    2428 {
     2431#endif
     2432{
     2433#if defined(VBOX_STRICT) && defined(IN_RING3)
     2434    int rc = PDMCritSectEnterDebug(&pVM->pgm.s.CritSectX, VERR_SEM_BUSY, (uintptr_t)ASMReturnAddress(), RT_SRC_POS_ARGS);
     2435#else
    24292436    int rc = PDMCritSectEnter(&pVM->pgm.s.CritSectX, VERR_SEM_BUSY);
     2437#endif
    24302438#if defined(IN_RC) || defined(IN_RING0)
    24312439    if (rc == VERR_SEM_BUSY)
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r44528 r45808  
    118118    AssertPtrReturn(pfnHandlerR3, VERR_INVALID_POINTER);
    119119    AssertReturn(pfnHandlerR0, VERR_INVALID_PARAMETER);
    120     AssertReturn(pfnHandlerRC, VERR_INVALID_PARAMETER);
     120    AssertReturn(pfnHandlerRC || HMIsEnabled(pVM), VERR_INVALID_PARAMETER);
    121121
    122122    /*
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