VirtualBox

Changeset 4697 in vbox


Ignore:
Timestamp:
Sep 11, 2007 11:13:15 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24360
Message:

Force R3 context for DECLCALLBACKMEMBER & DECLCALLBACKPTR

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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;
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