VirtualBox

Changeset 19287 in vbox for trunk


Ignore:
Timestamp:
May 1, 2009 1:07:51 PM (16 years ago)
Author:
vboxsync
Message:

VBox/cdefs.h,REM,CFGM: VMMRZDECL + some cleanup.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/cdefs.h

    r12989 r19287  
    277277 */
    278278/** @def VMMRCDECL
    279  * Guest context VMM export or import declaration.
     279 * Raw-mode context VMM export or import declaration.
    280280 * @param   type    The return type of the function declaration.
    281281 */
     
    286286#endif
    287287
     288/** @def VMMRZDECL
     289 * Ring-0 and Raw-mode context VMM export or import declaration.
     290 * @param   type    The return type of the function declaration.
     291 */
     292#if defined(IN_VMM_R0) || defined(IN_VMM_RC)
     293# define VMMRZDECL(type)    DECLEXPORT(type) VBOXCALL
     294#else
     295# define VMMRZDECL(type)    DECLIMPORT(type) VBOXCALL
     296#endif
     297
    288298/** @def VMMDECL
    289299 * VMM export or import declaration.
     
    312322
    313323
    314 
    315 /** @def NOT_DMIK(expr)
    316  * Turns the given expression into NOOP when DEBUG_dmik is defined. Evaluates
    317  * the expression normally otherwise.
    318  * @param expr  Expression to guard.
    319  */
    320 #if defined(DEBUG_dmik)
    321 # define NOT_DMIK(expr)     do { } while (0)
    322 #else
    323 # define NOT_DMIK(expr)     expr
    324 #endif
    325 
    326 
    327 #endif
    328 
     324#endif
     325
  • trunk/src/VBox/VMM/CFGM.cpp

    r18351 r19287  
    141141    }
    142142    else
    143         NOT_DMIK(AssertMsgFailed(("Constructor failed with rc=%Rrc pfnCFGMConstructor=%p\n", rc, pfnCFGMConstructor)));
     143        AssertMsgFailed(("Constructor failed with rc=%Rrc pfnCFGMConstructor=%p\n", rc, pfnCFGMConstructor));
    144144
    145145    return rc;
  • trunk/src/recompiler/target-i386/helper.c

    r18082 r19287  
    14101410{
    14111411#if defined(VBOX) && defined(DEBUG)
    1412     NOT_DMIK(Log2(("raise_interrupt: %x %x %x %RGv\n", intno, is_int, error_code, env->eip + next_eip_addend)));
     1412    Log2(("raise_interrupt: %x %x %x %RGv\n", intno, is_int, error_code, env->eip + next_eip_addend));
    14131413#endif
    14141414    env->exception_index = intno;
  • trunk/src/recompiler_new/target-i386/op_helper.c

    r18770 r19287  
    16791679{
    16801680#if defined(VBOX) && defined(DEBUG)
    1681     NOT_DMIK(Log2(("raise_interrupt: %x %x %x %RGv\n", intno, is_int, error_code, env->eip + next_eip_addend)));
     1681    Log2(("raise_interrupt: %x %x %x %RGv\n", intno, is_int, error_code, env->eip + next_eip_addend));
    16821682#endif
    16831683    if (!is_int) {
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