VirtualBox

Changeset 63226 in vbox


Ignore:
Timestamp:
Aug 9, 2016 4:41:16 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109856
Message:

Introducing PGM_ALL_CB2_PROTO.

Location:
trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pgm.h

    r63224 r63226  
    162162#else
    163163# define PGM_ALL_CB2_DECL(type)     DECLCALLBACK(DECLHIDDEN(type))
     164#endif
     165
     166/** @def PGM_ALL_CB2_PROTO
     167 * Macro for declaring a handler callback for all contexts.  The handler
     168 * callback is hidden in ring-3, and exported in RC and R0.
     169 * @param   fnType      The callback function type.
     170 * @sa PGM_ALL_CB2_DECL.
     171 */
     172#if defined(IN_RC) || defined(IN_RING0)
     173# ifdef __cplusplus
     174#  define PGM_ALL_CB2_PROTO(fnType)    extern "C" DECLEXPORT(fnType)
     175# else
     176#  define PGM_ALL_CB2_PROTO(fnType)    DECLEXPORT(fnType)
     177# endif
     178#else
     179# define PGM_ALL_CB2_PROTO(fnType)     DECLHIDDEN(fnType)
    164180#endif
    165181
  • trunk/src/VBox/Devices/Network/DevPCNet.cpp

    r63218 r63226  
    639639static int  pcnetXmitPending(PPCNETSTATE pThis, bool fOnWorkerThread);
    640640#ifdef PCNET_NO_POLLING
    641 PGM_ALL_CB_DECL(FNPGMPHYSHANDLER)   pcnetHandleRingWrite;
    642641# ifndef IN_RING3
    643642RT_C_DECLS_BEGIN
  • trunk/src/VBox/VMM/include/CSAMInternal.h

    r62478 r63226  
    284284}
    285285
    286 PGM_ALL_CB2_DECL(FNPGMVIRTHANDLER) csamCodePageWriteHandler;
     286PGM_ALL_CB2_PROTO(FNPGMVIRTHANDLER) csamCodePageWriteHandler;
    287287RT_C_DECLS_BEGIN
    288288DECLEXPORT(FNPGMRCVIRTPFHANDLER)    csamRCCodePageWritePfHandler;
  • trunk/src/VBox/VMM/include/IOMInternal.h

    r62478 r63226  
    464464DECLEXPORT(FNPGMRZPHYSPFHANDLER)    iomMmioPfHandler;
    465465#endif
    466 PGM_ALL_CB2_DECL(FNPGMPHYSHANDLER) iomMmioHandler;
     466PGM_ALL_CB2_PROTO(FNPGMPHYSHANDLER) iomMmioHandler;
    467467
    468468/* IOM locking helpers. */
  • trunk/src/VBox/VMM/include/PATMInternal.h

    r62478 r63226  
    685685void patmR3DbgAddPatch(PVM pVM, PPATMPATCHREC pPatchRec);
    686686
    687 PGM_ALL_CB2_DECL(FNPGMVIRTHANDLER) patmVirtPageHandler;
    688 
    689 #endif
     687PGM_ALL_CB2_PROTO(FNPGMVIRTHANDLER) patmVirtPageHandler;
     688
     689#endif
  • trunk/src/VBox/VMM/include/PGMInternal.h

    r62478 r63226  
    41714171int             pgmPhysGCPhys2CCPtrInternalReadOnly(PVM pVM, PPGMPAGE pPage, RTGCPHYS GCPhys, const void **ppv, PPGMPAGEMAPLOCK pLock);
    41724172void            pgmPhysReleaseInternalPageMappingLock(PVM pVM, PPGMPAGEMAPLOCK pLock);
    4173 PGM_ALL_CB2_DECL(FNPGMPHYSHANDLER) pgmPhysRomWriteHandler;
     4173PGM_ALL_CB2_PROTO(FNPGMPHYSHANDLER) pgmPhysRomWriteHandler;
    41744174#ifndef IN_RING3
    41754175DECLEXPORT(FNPGMPHYSHANDLER)        pgmPhysHandlerRedirectToHC;
     
    42334233int             pgmPoolMonitorChainFlush(PPGMPOOL pPool, PPGMPOOLPAGE pPage);
    42344234void            pgmPoolMonitorModifiedInsert(PPGMPOOL pPool, PPGMPOOLPAGE pPage);
    4235 PGM_ALL_CB2_DECL(FNPGMPHYSHANDLER) pgmPoolAccessHandler;
     4235PGM_ALL_CB2_PROTO(FNPGMPHYSHANDLER) pgmPoolAccessHandler;
    42364236#ifndef IN_RING3
    4237 DECLEXPORT(FNPGMRZPHYSPFHANDLER)   pgmPoolAccessPfHandler;
     4237DECLEXPORT(FNPGMRZPHYSPFHANDLER)    pgmPoolAccessPfHandler;
    42384238#endif
    42394239
  • trunk/src/VBox/VMM/include/SELMInternal.h

    r62478 r63226  
    230230RT_C_DECLS_BEGIN
    231231
    232 PGM_ALL_CB2_DECL(FNPGMVIRTHANDLER) selmGuestGDTWriteHandler;
     232PGM_ALL_CB2_PROTO(FNPGMVIRTHANDLER) selmGuestGDTWriteHandler;
    233233DECLEXPORT(FNPGMRCVIRTPFHANDLER)    selmRCGuestGDTWritePfHandler;
    234 PGM_ALL_CB2_DECL(FNPGMVIRTHANDLER) selmGuestLDTWriteHandler;
     234PGM_ALL_CB2_PROTO(FNPGMVIRTHANDLER) selmGuestLDTWriteHandler;
    235235DECLEXPORT(FNPGMRCVIRTPFHANDLER)    selmRCGuestLDTWritePfHandler;
    236 PGM_ALL_CB2_DECL(FNPGMVIRTHANDLER) selmGuestTSSWriteHandler;
     236PGM_ALL_CB2_PROTO(FNPGMVIRTHANDLER) selmGuestTSSWriteHandler;
    237237DECLEXPORT(FNPGMRCVIRTPFHANDLER)    selmRCGuestTSSWritePfHandler;
    238238DECLEXPORT(FNPGMRCVIRTPFHANDLER)    selmRCShadowGDTWritePfHandler;
  • trunk/src/VBox/VMM/include/TRPMInternal.h

    r62646 r63226  
    255255
    256256
    257 PGM_ALL_CB2_DECL(FNPGMVIRTHANDLER) trpmGuestIDTWriteHandler;
     257PGM_ALL_CB2_PROTO(FNPGMVIRTHANDLER) trpmGuestIDTWriteHandler;
    258258DECLEXPORT(FNPGMRCVIRTPFHANDLER)    trpmRCGuestIDTWritePfHandler;
    259259DECLEXPORT(FNPGMRCVIRTPFHANDLER)    trpmRCShadowIDTWritePfHandler;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette