VirtualBox

Changeset 43864 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Nov 13, 2012 2:16:42 PM (12 years ago)
Author:
vboxsync
Message:

VMM: a few compile fixes for VBOX_WITH_RAW_MODE disabled

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/VMMSwitcher.cpp

    r42025 r43864  
    271271
    272272
     273#ifdef VBOX_WITH_RAW_MODE
     274
    273275/**
    274276 * Generic switcher code relocator.
     
    860862}
    861863
    862 
    863864/**
    864865 * Relocator for the 32-Bit to 32-Bit world switcher.
     
    986987    return VERR_NOT_IMPLEMENTED;
    987988}
     989
     990#endif /* VBOX_WITH_RAW_MODE */
    988991
    989992
  • trunk/src/VBox/VMM/VMMR3/VMMTests.cpp

    r43394 r43864  
    5050}
    5151
     52
     53#ifdef VBOX_WITH_RAW_MODE
    5254
    5355/**
     
    177179}
    178180
     181#endif /* VBOX_WITH_RAW_MODE */
     182
    179183
    180184/* execute the switch. */
    181185VMMR3DECL(int) VMMDoTest(PVM pVM)
    182186{
    183 #if 1
     187    int rc = VINF_SUCCESS;
     188
     189#ifdef VBOX_WITH_RAW_MODE
    184190    PVMCPU pVCpu = &pVM->aCpus[0];
    185191
    186 #ifdef NO_SUPCALLR0VMM
     192# ifdef NO_SUPCALLR0VMM
    187193    RTPrintf("NO_SUPCALLR0VMM\n");
    188     return VINF_SUCCESS;
    189 #endif
     194    return rc;
     195# endif
    190196
    191197    /*
     
    193199     */
    194200    RTRCPTR RCPtrEP;
    195     int rc = PDMR3LdrGetSymbolRC(pVM, VMMGC_MAIN_MODULE_NAME, "VMMGCEntry", &RCPtrEP);
     201    rc = PDMR3LdrGetSymbolRC(pVM, VMMGC_MAIN_MODULE_NAME, "VMMGCEntry", &RCPtrEP);
    196202    if (RT_SUCCESS(rc))
    197203    {
     
    204210        vmmR3DoTrapTest(pVM, 0x3, 1, VINF_EM_DBG_HYPER_ASSERTION,  0xf0f0f0f0, "vmmGCTestTrap3_FaultEIP", "int3 WP");
    205211
    206 #if defined(DEBUG_bird) /* guess most people would like to skip these since they write to com1. */
     212# if defined(DEBUG_bird) /* guess most people would like to skip these since they write to com1. */
    207213        vmmR3DoTrapTest(pVM, 0x8, 0, VERR_TRPM_PANIC,       0x00000000, "vmmGCTestTrap8_FaultEIP", "#DF [#PG]");
    208214        SELMR3Relocate(pVM); /* this resets the busy flag of the Trap 08 TSS */
    209215        bool f;
    210216        rc = CFGMR3QueryBool(CFGMR3GetRoot(pVM), "DoubleFault", &f);
    211 #if !defined(DEBUG_bird)
     217# if !defined(DEBUG_bird)
    212218        if (RT_SUCCESS(rc) && f)
    213 #endif
     219# endif
    214220        {
    215221            /* see triple fault warnings in SELM and VMMGC.cpp. */
     
    217223            SELMR3Relocate(pVM); /* this resets the busy flag of the Trap 08 TSS */
    218224        }
    219 #endif
     225# endif
    220226
    221227        vmmR3DoTrapTest(pVM, 0xd, 0, VERR_TRPM_DONT_PANIC,  0xf0f0f0f0, "vmmGCTestTrap0d_FaultEIP", "ltr #GP");
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