VirtualBox

Changeset 4697

Show
Ignore:
Timestamp:
09/11/07 13:13:15 (1 year ago)
Author:
vboxsync
Message:

Force R3 context for DECLCALLBACKMEMBER & DECLCALLBACKPTR

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/cdefs.h

    r4071 r4697  
    489489 * @param   name    The name of the variable member. 
    490490 */ 
    491 #define DECLCALLBACKPTR(type, name)  type (RTCALL * name) 
     491#ifdef IN_RING3 
     492# define DECLCALLBACKPTR(type, name)  type (RTCALL * name) 
     493#else 
     494# define DECLCALLBACKPTR(type, name)  RTR3PTR name 
     495#endif 
    492496 
    493497/** @def DECLCALLBACKMEMBER 
     
    496500 * @param   name    The name of the struct/union/class member. 
    497501 */ 
    498 #define DECLCALLBACKMEMBER(type, name)  type (RTCALL * name) 
     502#ifdef IN_RING3 
     503# define DECLCALLBACKMEMBER(type, name)  type (RTCALL * name) 
     504#else 
     505# define DECLCALLBACKMEMBER(type, name)  RTR3PTR name 
     506#endif 
    499507 
    500508/** @def DECLR3CALLBACKMEMBER 
  • trunk/src/VBox/VMM/VMMGC/TRPMGCHandlers.cpp

    r4071 r4697  
    7575     * @param   uUser           The user argument. 
    7676     */ 
    77     DECLCALLBACKMEMBER(int, pfnHandler)(PVM pVM, PCPUMCTXCORE pRegFrame, uintptr_t uUser); 
     77    DECLGCCALLBACKMEMBER(int, pfnHandler, (PVM pVM, PCPUMCTXCORE pRegFrame, uintptr_t uUser)); 
    7878    /** Whatever the handler desires to put here. */ 
    7979    uintptr_t uUser; 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy