VirtualBox

Changeset 46915 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jul 2, 2013 5:21:32 PM (11 years ago)
Author:
vboxsync
Message:

PDMLdrEnumModules: Replaced fRc with a enmCtx so we don't load ring-3 modules into the ring-0 address host space.

File:
1 edited

Legend:

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

    r45965 r46915  
    7676VMMR3_INT_DECL(void)    PDMR3TermUVM(PUVM pUVM);
    7777
     78/** PDM loader context indicator.  */
     79typedef enum  PDMLDRCTX
     80{
     81    /** Invalid zero value. */
     82    PDMLDRCTX_INVALID = 0,
     83    /** Ring-0 context. */
     84    PDMLDRCTX_RING_0,
     85    /** Ring-3 context. */
     86    PDMLDRCTX_RING_3,
     87    /** Raw-mode context. */
     88    PDMLDRCTX_RAW_MODE,
     89    /** End of valid context values. */
     90    PDMLDRCTX_END,
     91    /** 32-bit type hack. */
     92    PDMLDRCTX_32BIT_HACK = 0x7fffffff
     93} PDMLDRCTX;
     94
    7895/**
    7996 * Module enumeration callback function.
     
    87104 * @param   ImageBase       Address where to executable image is loaded.
    88105 * @param   cbImage         Size of the executable image.
    89  * @param   fRC             Set if raw-mode context, clear if host context.
     106 * @param   enmCtx          The context the module is loaded into.
    90107 * @param   pvArg           User argument.
    91108 */
    92109typedef DECLCALLBACK(int) FNPDMR3ENUM(PVM pVM, const char *pszFilename, const char *pszName,
    93                                       RTUINTPTR ImageBase, size_t cbImage, bool fRC, void *pvArg);
     110                                      RTUINTPTR ImageBase, size_t cbImage, PDMLDRCTX enmCtx, void *pvArg);
    94111/** Pointer to a FNPDMR3ENUM() function. */
    95112typedef FNPDMR3ENUM *PFNPDMR3ENUM;
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