VirtualBox

Changeset 11153 in vbox for trunk/include


Ignore:
Timestamp:
Aug 5, 2008 10:47:48 PM (16 years ago)
Author:
vboxsync
Message:

VMM: raw-mode context (RC) changes for the MHyperXXToYY APIs.

File:
1 edited

Legend:

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

    r11150 r11153  
    246246}
    247247#endif
    248 #define MMHyperGCToCC(pVM, RCPtr) MMHyperRCToCC(pVM, RCPtr)
     248#define MMHyperGCToCC(pVM, RCPtr) MMHyperRCToCC(pVM, RCPtr) /**< @deprecated */
    249249
    250250#ifndef IN_RING3
     
    269269
    270270#ifndef IN_GC
    271 MMDECL(RCPTRTYPE(void *))     MMHyperCCToGC(PVM pVM, void *pv);
    272 #else
    273 DECLINLINE(RCPTRTYPE(void *)) MMHyperCCToGC(PVM pVM, void *pv)
    274 {
    275     NOREF(pVM);
    276     return (RCPTRTYPE(void *))pv;
    277 }
    278 #endif
     271MMDECL(RTRCPTR)     MMHyperCCToRC(PVM pVM, void *pv);
     272#else
     273DECLINLINE(RTRCPTR) MMHyperCCToRC(PVM pVM, void *pv)
     274{
     275    NOREF(pVM);
     276    return (RTRCPTR)pv;
     277}
     278#endif
     279#define MMHyperCCToGC(pVM, pv)  MMHyperCCToRC(pVM, pv) /** @deprecated */
    279280
    280281
     
    289290#endif
    290291
    291 
    292 MMDECL(RCPTRTYPE(void *))     MMHyperHC2GC(PVM pVM, RTHCPTR HCPtr);
    293 MMDECL(RTHCPTR)     MMHyperGC2HC(PVM pVM, RCPTRTYPE(void *) GCPtr);
     292#define MMHyperHC2GC(pVM, R3Ptr) MMHyperR3ToRC((pVM), (R3Ptr)) /**< @deprecated */
     293#define MMHyperGC2HC(pVM, RCPtr) MMHyperRCToR3((pVM), (RCPtr)) /**< @deprecated */
     294
     295
    294296MMDECL(int)         MMHyperAlloc(PVM pVM, size_t cb, uint32_t uAlignment, MMTAG enmTag, void **ppv);
    295297MMDECL(int)         MMHyperFree(PVM pVM, void *pv);
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