VirtualBox

Changeset 57411 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Aug 18, 2015 10:16:15 AM (9 years ago)
Author:
vboxsync
Message:

VMM: DECLCALLBACK fixes.

Location:
trunk/src/VBox/VMM
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/TMAllVirtual.cpp

    r57358 r57411  
    4646 * @interface_method_impl{RTTIMENANOTSDATA, pfnBadPrev}
    4747 */
    48 DECLEXPORT(void) tmVirtualNanoTSBadPrev(PRTTIMENANOTSDATA pData, uint64_t u64NanoTS, uint64_t u64DeltaPrev,
    49                                         uint64_t u64PrevNanoTS)
     48DECLCALLBACK(DECLEXPORT(void)) tmVirtualNanoTSBadPrev(PRTTIMENANOTSDATA pData, uint64_t u64NanoTS, uint64_t u64DeltaPrev,
     49                                                      uint64_t u64PrevNanoTS)
    5050{
    5151    PVM pVM = RT_FROM_MEMBER(pData, VM, CTX_SUFF(tm.s.VirtualGetRawData));
     
    6868 * last two events may occur as CPUs are taken online.
    6969 */
    70 DECLEXPORT(uint64_t) tmVirtualNanoTSRediscover(PRTTIMENANOTSDATA pData)
     70DECLCALLBACK(DECLEXPORT(uint64_t)) tmVirtualNanoTSRediscover(PRTTIMENANOTSDATA pData)
    7171{
    7272    PVM pVM = RT_FROM_MEMBER(pData, VM, CTX_SUFF(tm.s.VirtualGetRawData));
  • trunk/src/VBox/VMM/VMMR3/PATM.cpp

    r57389 r57411  
    21862186 *
    21872187 */
    2188 int patmr3DisasmCallback(PVM pVM, DISCPUSTATE *pCpu, RCPTRTYPE(uint8_t *) pInstrGC, RCPTRTYPE(uint8_t *) pCurInstrGC, PPATMP2GLOOKUPREC pCacheRec)
     2188DECLCALLBACK(int) patmR3DisasmCallback(PVM pVM, DISCPUSTATE *pCpu, RCPTRTYPE(uint8_t *) pInstrGC,
     2189                                       RCPTRTYPE(uint8_t *) pCurInstrGC, PPATMP2GLOOKUPREC pCacheRec)
    21892190{
    21902191    PPATCHINFO pPatch = (PPATCHINFO)pCacheRec->pPatch;
     
    29402941#ifdef LOG_ENABLED
    29412942    Log(("Patch code ----------------------------------------------------------\n"));
    2942     patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patmr3DisasmCallback, &cacheRec);
     2943    patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patmR3DisasmCallback, &cacheRec);
    29432944    /* Free leftover lock if any. */
    29442945    if (cacheRec.Lock.pvMap)
     
    31243125#ifdef LOG_ENABLED
    31253126            Log(("Patch code ----------------------------------------------------------\n"));
    3126             patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patmr3DisasmCallback, pCacheRec);
     3127            patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patmR3DisasmCallback, pCacheRec);
    31273128            Log(("Patch code ends -----------------------------------------------------\n"));
    31283129#endif
     
    31983199#ifdef LOG_ENABLED
    31993200    Log(("Patch code ----------------------------------------------------------\n"));
    3200     patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patmr3DisasmCallback, pCacheRec);
     3201    patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patmR3DisasmCallback, pCacheRec);
    32013202    Log(("Patch code ends -----------------------------------------------------\n"));
    32023203#endif
     
    33453346#ifdef LOG_ENABLED
    33463347    Log(("Patch code ----------------------------------------------------------\n"));
    3347     patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patmr3DisasmCallback, pCacheRec);
     3348    patmr3DisasmCodeStream(pVM, PATCHCODE_PTR_GC(pPatch), PATCHCODE_PTR_GC(pPatch), patmR3DisasmCallback, pCacheRec);
    33483349    Log(("Patch code ends -----------------------------------------------------\n"));
    33493350#endif
  • trunk/src/VBox/VMM/VMMR3/PATMGuest.cpp

    r57358 r57411  
    156156    cacheRec.pPatch = pPatch;
    157157
    158     patmr3DisasmCodeStream(pVM, pInstrGC, pInstrGC, patmr3DisasmCallback, &cacheRec);
     158    patmr3DisasmCodeStream(pVM, pInstrGC, pInstrGC, patmR3DisasmCallback, &cacheRec);
    159159    /* Free leftover lock if any. */
    160160    if (cacheRec.Lock.pvMap)
  • trunk/src/VBox/VMM/include/PATMInternal.h

    r56287 r57411  
    677677
    678678#ifdef LOG_ENABLED
    679 int patmr3DisasmCallback(PVM pVM, DISCPUSTATE *pCpu, RCPTRTYPE(uint8_t *) pInstrGC, RCPTRTYPE(uint8_t *) pCurInstrGC, PPATMP2GLOOKUPREC pCacheRec);
     679DECLCALLBACK(int) patmR3DisasmCallback(PVM pVM, DISCPUSTATE *pCpu, RCPTRTYPE(uint8_t *) pInstrGC, RCPTRTYPE(uint8_t *) pCurInstrGC, PPATMP2GLOOKUPREC pCacheRec);
    680680int patmr3DisasmCodeStream(PVM pVM, RCPTRTYPE(uint8_t *) pInstrGC, RCPTRTYPE(uint8_t *) pCurInstrGC, PFN_PATMR3ANALYSE pfnPATMR3Analyse, PPATMP2GLOOKUPREC pCacheRec);
    681681#endif
  • trunk/src/VBox/VMM/include/TMInternal.h

    r54308 r57411  
    767767int                     tmVirtualPauseLocked(PVM pVM);
    768768int                     tmVirtualResumeLocked(PVM pVM);
    769 DECLEXPORT(void)        tmVirtualNanoTSBadPrev(PRTTIMENANOTSDATA pData, uint64_t u64NanoTS,
    770                                                uint64_t u64DeltaPrev, uint64_t u64PrevNanoTS);
    771 DECLEXPORT(uint64_t)    tmVirtualNanoTSRediscover(PRTTIMENANOTSDATA pData);
    772 DECLEXPORT(uint64_t)    tmVirtualNanoTSBadCpuIndex(PRTTIMENANOTSDATA pData, uint16_t idApic, uint16_t iCpuSet, uint16_t iGipCpu);
     769DECLCALLBACK(DECLEXPORT(void))      tmVirtualNanoTSBadPrev(PRTTIMENANOTSDATA pData, uint64_t u64NanoTS,
     770                                                           uint64_t u64DeltaPrev, uint64_t u64PrevNanoTS);
     771DECLCALLBACK(DECLEXPORT(uint64_t))  tmVirtualNanoTSRediscover(PRTTIMENANOTSDATA pData);
     772DECLCALLBACK(DECLEXPORT(uint64_t))  tmVirtualNanoTSBadCpuIndex(PRTTIMENANOTSDATA pData, uint16_t idApic,
     773                                                               uint16_t iCpuSet, uint16_t iGipCpu);
    773774
    774775#ifdef IN_RING3
  • trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletion.cpp

    r57358 r57411  
    6060RTSEMEVENT              g_FinishedEventSem;
    6161
    62 void pfnAsyncTaskCompleted(PVM pVM, void *pvUser, void *pvUser2, int rc)
     62static DECLCALLBACK(void) AsyncTaskCompleted(PVM pVM, void *pvUser, void *pvUser2, int rc)
    6363{
    6464    LogFlow((TESTCASE ": %s: pVM=%p pvUser=%p pvUser2=%p\n", __FUNCTION__, pVM, pvUser, pvUser2));
     
    106106         */
    107107        PPDMASYNCCOMPLETIONTEMPLATE pTemplate;
    108         rc = PDMR3AsyncCompletionTemplateCreateInternal(pVM, &pTemplate, pfnAsyncTaskCompleted, NULL, "Test");
     108        rc = PDMR3AsyncCompletionTemplateCreateInternal(pVM, &pTemplate, AsyncTaskCompleted, NULL, "Test");
    109109        if (RT_FAILURE(rc))
    110110        {
  • trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletionStress.cpp

    r57358 r57411  
    157157PDMACTESTFILE g_aTestFiles[NR_OPEN_ENDPOINTS];
    158158
    159 static void tstPDMACStressTestFileTaskCompleted(PVM pVM, void *pvUser, void *pvUser2, int rcReq);
     159static DECLCALLBACK(void) tstPDMACStressTestFileTaskCompleted(PVM pVM, void *pvUser, void *pvUser2, int rcReq);
    160160
    161161static void tstPDMACStressTestFileVerify(PPDMACTESTFILE pTestFile, PPDMACTESTFILETASK pTestTask)
     
    328328}
    329329
    330 static int tstPDMACTestFileThread(PVM pVM, PPDMTHREAD pThread)
     330static DECLCALLBACK(int) tstPDMACTestFileThread(PVM pVM, PPDMTHREAD pThread)
    331331{
    332332    PPDMACTESTFILE pTestFile = (PPDMACTESTFILE)pThread->pvUser;
     
    389389}
    390390
    391 static void tstPDMACStressTestFileTaskCompleted(PVM pVM, void *pvUser, void *pvUser2, int rcReq)
     391static DECLCALLBACK(void) tstPDMACStressTestFileTaskCompleted(PVM pVM, void *pvUser, void *pvUser2, int rcReq)
    392392{
    393393    PPDMACTESTFILE pTestFile = (PPDMACTESTFILE)pvUser2;
     
    459459
    460460            RTStrPrintf(szDesc, sizeof(szDesc), "Template-%d", iTestId);
    461             rc = PDMR3AsyncCompletionTemplateCreateInternal(pVM, &pTestFile->pTemplate, tstPDMACStressTestFileTaskCompleted, pTestFile, szDesc);
     461            rc = PDMR3AsyncCompletionTemplateCreateInternal(pVM, &pTestFile->pTemplate, tstPDMACStressTestFileTaskCompleted,
     462                                                            pTestFile, szDesc);
    462463            if (RT_SUCCESS(rc))
    463464            {
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