VirtualBox

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


Ignore:
Timestamp:
Feb 25, 2009 12:20:29 PM (16 years ago)
Author:
vboxsync
Message:

Don't compile unused code for the r0 module.

File:
1 edited

Legend:

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

    r17122 r17123  
    524524#endif /* defined(VBOX_STRICT) && !defined(IN_RING0) */
    525525
     526#ifndef IN_RING0
    526527/**
    527528 * Apply the hypervisor mappings to the active CR3.
     
    548549    Log4(("PGMMapActivateAll fixed mappings=%d\n", pVM->pgm.s.fMappingsFixed));
    549550
    550 #ifdef IN_RING0
    551     AssertFailed();
    552     return VERR_INTERNAL_ERROR;
    553 #else
    554551# ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY
    555552    Assert(pVM->pgm.s.CTX_SUFF(pShwPageCR3));
     
    566563    }
    567564    return VINF_SUCCESS;
    568 #endif /* IN_RING0 */
    569565}
    570566
     
    592588    Log(("PGMMapDeactivateAll fixed mappings=%d\n", pVM->pgm.s.fMappingsFixed));
    593589
    594 #ifdef IN_RING0
    595     AssertFailed();
    596     return VERR_INTERNAL_ERROR;
    597 #else
    598590# ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY
    599591    Assert(pVM->pgm.s.CTX_SUFF(pShwPageCR3));
     
    610602    }
    611603    return VINF_SUCCESS;
    612 #endif /* IN_RING0 */
    613604}
    614605
     
    636627        return VINF_SUCCESS;
    637628
    638 #ifdef IN_RING0
    639     AssertFailed();
    640     return VERR_INTERNAL_ERROR;
    641 #else
    642629# ifdef VBOX_WITH_PGMPOOL_PAGING_ONLY
    643630    Assert(pVM->pgm.s.CTX_SUFF(pShwPageCR3));
     
    654641    }
    655642    return VINF_SUCCESS;
    656 #endif /* IN_RING0 */
    657 }
    658 
    659 #ifndef IN_RING0
     643}
     644
    660645/**
    661646 * Checks guest PD for conflicts with VMM GC mappings.
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