Changeset 46915 in vbox
- Timestamp:
- Jul 2, 2013 5:21:32 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pdmapi.h
r45965 r46915 76 76 VMMR3_INT_DECL(void) PDMR3TermUVM(PUVM pUVM); 77 77 78 /** PDM loader context indicator. */ 79 typedef 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 78 95 /** 79 96 * Module enumeration callback function. … … 87 104 * @param ImageBase Address where to executable image is loaded. 88 105 * @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. 90 107 * @param pvArg User argument. 91 108 */ 92 109 typedef 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); 94 111 /** Pointer to a FNPDMR3ENUM() function. */ 95 112 typedef FNPDMR3ENUM *PFNPDMR3ENUM; -
trunk/src/VBox/VMM/VMMR3/DBGFAddrSpace.cpp
r46167 r46915 542 542 */ 543 543 static DECLCALLBACK(int) dbgfR3AsLazyPopulateR0Callback(PVM pVM, const char *pszFilename, const char *pszName, 544 RTUINTPTR ImageBase, size_t cbImage, bool fRC, void *pvArg)544 RTUINTPTR ImageBase, size_t cbImage, PDMLDRCTX enmCtx, void *pvArg) 545 545 { 546 546 NOREF(pVM); NOREF(cbImage); 547 547 548 548 /* Only ring-0 modules. */ 549 if ( !fRC)549 if (enmCtx == PDMLDRCTX_RING_0) 550 550 { 551 551 RTDBGMOD hDbgMod; … … 570 570 */ 571 571 static DECLCALLBACK(int) dbgfR3AsLazyPopulateRCCallback(PVM pVM, const char *pszFilename, const char *pszName, 572 RTUINTPTR ImageBase, size_t cbImage, bool fRC, void *pvArg)572 RTUINTPTR ImageBase, size_t cbImage, PDMLDRCTX enmCtx, void *pvArg) 573 573 { 574 574 NOREF(pVM); NOREF(cbImage); 575 575 576 576 /* Only raw-mode modules. */ 577 if ( fRC)577 if (enmCtx == PDMLDRCTX_RAW_MODE) 578 578 { 579 579 RTDBGMOD hDbgMod; -
trunk/src/VBox/VMM/VMMR3/PDMLdr.cpp
r46165 r46915 1449 1449 pCur->ImageBase, 1450 1450 pCur->eType == PDMMOD_TYPE_RC ? RTLdrSize(pCur->hLdrMod) : 0, 1451 pCur->eType == PDMMOD_TYPE_RC, 1451 pCur->eType == PDMMOD_TYPE_RC ? PDMLDRCTX_RAW_MODE 1452 : pCur->eType == PDMMOD_TYPE_R0 ? PDMLDRCTX_RING_0 1453 : pCur->eType == PDMMOD_TYPE_R3 ? PDMLDRCTX_RING_3 1454 : PDMLDRCTX_INVALID, 1452 1455 pvArg); 1453 1456 if (RT_FAILURE(rc)) -
trunk/src/VBox/VMM/testcase/tstVMM.cpp
r46299 r46915 140 140 /** PDMR3LdrEnumModules callback, see FNPDMR3ENUM. */ 141 141 static DECLCALLBACK(int) 142 tstVMMLdrEnum(PVM pVM, const char *pszFilename, const char *pszName, RTUINTPTR ImageBase, size_t cbImage, bool fGC, void *pvUser) 143 { 144 NOREF(pVM); NOREF(pszFilename); NOREF(fGC); NOREF(pvUser); NOREF(cbImage); 142 tstVMMLdrEnum(PVM pVM, const char *pszFilename, const char *pszName, RTUINTPTR ImageBase, size_t cbImage, 143 PDMLDRCTX enmCtx, void *pvUser) 144 { 145 NOREF(pVM); NOREF(pszFilename); NOREF(enmCtx); NOREF(pvUser); NOREF(cbImage); 145 146 RTPrintf("tstVMM: %RTptr %s\n", ImageBase, pszName); 146 147 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.