- Timestamp:
- Apr 20, 2007 11:26:42 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/pdm.h
r2286 r2291 3417 3417 } PDMPCIHLPR0; 3418 3418 /** Pointer to PCI helpers. */ 3419 typedef HCPTRTYPE(PDMPCIHLPR0 *) PPDMPCIHLPR0;3419 typedef R0PTRTYPE(PDMPCIHLPR0 *) PPDMPCIHLPR0; 3420 3420 /** Pointer to const PCI helpers. */ 3421 typedef HCPTRTYPE(const PDMPCIHLPR0 *) PCPDMPCIHLPR0;3421 typedef R0PTRTYPE(const PDMPCIHLPR0 *) PCPDMPCIHLPR0; 3422 3422 3423 3423 /** Current PDMPCIHLPR0 version number. */ … … 3647 3647 3648 3648 /** Pointer to PIC R0 helpers. */ 3649 typedef HCPTRTYPE(PDMPICHLPR0 *) PPDMPICHLPR0;3649 typedef R0PTRTYPE(PDMPICHLPR0 *) PPDMPICHLPR0; 3650 3650 /** Pointer to const PIC R0 helpers. */ 3651 typedef HCPTRTYPE(const PDMPICHLPR0 *) PCPDMPICHLPR0;3651 typedef R0PTRTYPE(const PDMPICHLPR0 *) PCPDMPICHLPR0; 3652 3652 3653 3653 /** Current PDMPICHLPR0 version number. */ … … 3949 3949 typedef GCPTRTYPE(PDMAPICHLPR0 *) PPDMAPICHLPR0; 3950 3950 /** Pointer to const APIC helpers. */ 3951 typedef HCPTRTYPE(const PDMAPICHLPR0 *) PCPDMAPICHLPR0;3951 typedef R0PTRTYPE(const PDMAPICHLPR0 *) PCPDMAPICHLPR0; 3952 3952 3953 3953 /** Current PDMAPICHLPR0 version number. */ … … 4171 4171 } PDMIOAPICHLPR0; 4172 4172 /** Pointer to IOAPIC R0 helpers. */ 4173 typedef HCPTRTYPE(PDMAPICHLPGC *)PPDMIOAPICHLPR0;4173 typedef R0PTRTYPE(PDMAPICHLPGC *) PPDMIOAPICHLPR0; 4174 4174 /** Pointer to const IOAPIC helpers. */ 4175 typedef HCPTRTYPE(const PDMIOAPICHLPR0 *) PCPDMIOAPICHLPR0;4175 typedef R0PTRTYPE(const PDMIOAPICHLPR0 *) PCPDMIOAPICHLPR0; 4176 4176 4177 4177 /** Current PDMIOAPICHLPR0 version number. */ … … 6597 6597 * @param ppvValue Where to store the symbol value. 6598 6598 */ 6599 PDMR3DECL(int) PDMR3GetSymbolR0(PVM pVM, const char *pszModule, const char *pszSymbol, void **ppvValue);6599 PDMR3DECL(int) PDMR3GetSymbolR0(PVM pVM, const char *pszModule, const char *pszSymbol, PRTR0PTR ppvValue); 6600 6600 6601 6601 /** … … 6609 6609 * @param ppvValue Where to store the symbol value. 6610 6610 */ 6611 PDMR3DECL(int) PDMR3GetSymbolR0Lazy(PVM pVM, const char *pszModule, const char *pszSymbol, void **ppvValue);6611 PDMR3DECL(int) PDMR3GetSymbolR0Lazy(PVM pVM, const char *pszModule, const char *pszSymbol, PRTR0PTR ppvValue); 6612 6612 6613 6613 /** -
trunk/include/iprt/cdefs.h
r1451 r2291 471 471 # define DECLR3CALLBACKMEMBER(type, name, args) type (RTCALL * name) args 472 472 #else 473 # define DECLR3CALLBACKMEMBER(type, name, args) RT HCPTR name473 # define DECLR3CALLBACKMEMBER(type, name, args) RTR3PTR name 474 474 #endif 475 475 … … 495 495 # define DECLR0CALLBACKMEMBER(type, name, args) type (RTCALL * name) args 496 496 #else 497 # define DECLR0CALLBACKMEMBER(type, name, args) RT HCPTR name497 # define DECLR0CALLBACKMEMBER(type, name, args) RTR0PTR name 498 498 #endif 499 499 -
trunk/src/VBox/Devices/Network/DevPCNet.cpp
r1856 r2291 4172 4172 4173 4173 #ifdef PCNET_NO_POLLING 4174 rc = PDMR3GetSymbolR0Lazy(PDMDevHlpGetVM(pDevIns), NULL, "EMInterpretInstruction", (void **)&pData->pfnEMInterpretInstructionR0);4174 rc = PDMR3GetSymbolR0Lazy(PDMDevHlpGetVM(pDevIns), NULL, "EMInterpretInstruction", &pData->pfnEMInterpretInstructionR0); 4175 4175 if (VBOX_SUCCESS(rc)) 4176 4176 { -
trunk/src/VBox/VMM/PDMDevice.cpp
r2270 r2291 540 540 541 541 R0PTRTYPE(PCPDMDEVHLPR0) pDevHlpR0; 542 rc = PDMR3GetSymbolR0(pVM, NULL, "g_pdmR0DevHlp", (void **)&pDevHlpR0);542 rc = PDMR3GetSymbolR0(pVM, NULL, "g_pdmR0DevHlp", &pDevHlpR0); 543 543 AssertReleaseRCReturn(rc, rc); 544 544 … … 1230 1230 if (pszIn) 1231 1231 { 1232 rc = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszIn, (void **)&pfnR0PtrIn);1232 rc = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszIn, &pfnR0PtrIn); 1233 1233 AssertMsgRC(rc, ("Failed to resolve %s.%s (pszIn)\n", pDevIns->pDevReg->szR0Mod, pszIn)); 1234 1234 } … … 1236 1236 if (pszOut && VBOX_SUCCESS(rc)) 1237 1237 { 1238 rc = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszOut, (void **)&pfnR0PtrOut);1238 rc = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszOut, &pfnR0PtrOut); 1239 1239 AssertMsgRC(rc, ("Failed to resolve %s.%s (pszOut)\n", pDevIns->pDevReg->szR0Mod, pszOut)); 1240 1240 } … … 1242 1242 if (pszInStr && VBOX_SUCCESS(rc)) 1243 1243 { 1244 rc = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszInStr, (void **)&pfnR0PtrInStr);1244 rc = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszInStr, &pfnR0PtrInStr); 1245 1245 AssertMsgRC(rc, ("Failed to resolve %s.%s (pszInStr)\n", pDevIns->pDevReg->szR0Mod, pszInStr)); 1246 1246 } … … 1248 1248 if (pszOutStr && VBOX_SUCCESS(rc)) 1249 1249 { 1250 rc = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszOutStr, (void **)&pfnR0PtrOutStr);1250 rc = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszOutStr, &pfnR0PtrOutStr); 1251 1251 AssertMsgRC(rc, ("Failed to resolve %s.%s (pszOutStr)\n", pDevIns->pDevReg->szR0Mod, pszOutStr)); 1252 1252 } … … 1373 1373 R0PTRTYPE(PFNIOMMMIOWRITE) pfnR0PtrWrite = 0; 1374 1374 if (pszWrite) 1375 rc = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszWrite, (void **)&pfnR0PtrWrite);1375 rc = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszWrite, &pfnR0PtrWrite); 1376 1376 R0PTRTYPE(PFNIOMMMIOREAD) pfnR0PtrRead = 0; 1377 1377 int rc2 = VINF_SUCCESS; 1378 1378 if (pszRead) 1379 rc2 = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszRead, (void **)&pfnR0PtrRead);1379 rc2 = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszRead, &pfnR0PtrRead); 1380 1380 R0PTRTYPE(PFNIOMMMIOFILL) pfnR0PtrFill = 0; 1381 1381 int rc3 = VINF_SUCCESS; 1382 1382 if (pszFill) 1383 rc3 = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszFill, (void **)&pfnR0PtrFill);1383 rc3 = PDMR3GetSymbolR0Lazy(pDevIns->Internal.s.pVMHC, pDevIns->pDevReg->szR0Mod, pszFill, &pfnR0PtrFill); 1384 1384 if (VBOX_SUCCESS(rc) && VBOX_SUCCESS(rc2) && VBOX_SUCCESS(rc3)) 1385 1385 rc = IOMMMIORegisterR0(pDevIns->Internal.s.pVMHC, pDevIns, GCPhysStart, cbRange, pvUser, pfnR0PtrWrite, pfnR0PtrRead, pfnR0PtrFill, pszDesc); … … 2381 2381 && pPciBusReg->pszSetIrqR0) 2382 2382 { 2383 int rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pPciBusReg->pszSetIrqR0, (void **)&pPciBus->pfnSetIrqR0);2383 int rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pPciBusReg->pszSetIrqR0, &pPciBus->pfnSetIrqR0); 2384 2384 AssertMsgRC(rc, ("%s::%s rc=%Vrc\n", pDevIns->pDevReg->szR0Mod, pPciBusReg->pszSetIrqR0, rc)); 2385 2385 if (VBOX_FAILURE(rc)) … … 2518 2518 && pPicReg->pszSetIrqR0) 2519 2519 { 2520 int rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pPicReg->pszSetIrqR0, (void **)&pVM->pdm.s.Pic.pfnSetIrqR0);2520 int rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pPicReg->pszSetIrqR0, &pVM->pdm.s.Pic.pfnSetIrqR0); 2521 2521 AssertMsgRC(rc, ("%s::%s rc=%Vrc\n", pDevIns->pDevReg->szR0Mod, pPicReg->pszSetIrqR0, rc)); 2522 2522 if (VBOX_SUCCESS(rc)) 2523 2523 { 2524 rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pPicReg->pszGetInterruptR0, (void **)&pVM->pdm.s.Pic.pfnGetInterruptR0);2524 rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pPicReg->pszGetInterruptR0, &pVM->pdm.s.Pic.pfnGetInterruptR0); 2525 2525 AssertMsgRC(rc, ("%s::%s rc=%Vrc\n", pDevIns->pDevReg->szR0Mod, pPicReg->pszGetInterruptR0, rc)); 2526 2526 } … … 2714 2714 && pApicReg->pszGetInterruptR0) 2715 2715 { 2716 int rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszGetInterruptR0, (void **)&pVM->pdm.s.Apic.pfnGetInterruptR0);2716 int rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszGetInterruptR0, &pVM->pdm.s.Apic.pfnGetInterruptR0); 2717 2717 AssertMsgRC(rc, ("%s::%s rc=%Vrc\n", pDevIns->pDevReg->szR0Mod, pApicReg->pszGetInterruptR0, rc)); 2718 2718 if (RT_SUCCESS(rc)) 2719 2719 { 2720 rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszSetBaseR0, (void **)&pVM->pdm.s.Apic.pfnSetBaseR0);2720 rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszSetBaseR0, &pVM->pdm.s.Apic.pfnSetBaseR0); 2721 2721 AssertMsgRC(rc, ("%s::%s rc=%Vrc\n", pDevIns->pDevReg->szR0Mod, pApicReg->pszSetBaseR0, rc)); 2722 2722 } 2723 2723 if (RT_SUCCESS(rc)) 2724 2724 { 2725 rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszGetBaseR0, (void **)&pVM->pdm.s.Apic.pfnGetBaseR0);2725 rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszGetBaseR0, &pVM->pdm.s.Apic.pfnGetBaseR0); 2726 2726 AssertMsgRC(rc, ("%s::%s rc=%Vrc\n", pDevIns->pDevReg->szR0Mod, pApicReg->pszGetBaseR0, rc)); 2727 2727 } 2728 2728 if (RT_SUCCESS(rc)) 2729 2729 { 2730 rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszSetTPRR0, (void **)&pVM->pdm.s.Apic.pfnSetTPRR0);2730 rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszSetTPRR0, &pVM->pdm.s.Apic.pfnSetTPRR0); 2731 2731 AssertMsgRC(rc, ("%s::%s rc=%Vrc\n", pDevIns->pDevReg->szR0Mod, pApicReg->pszSetTPRR0, rc)); 2732 2732 } 2733 2733 if (RT_SUCCESS(rc)) 2734 2734 { 2735 rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszGetTPRR0, (void **)&pVM->pdm.s.Apic.pfnGetTPRR0);2735 rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszGetTPRR0, &pVM->pdm.s.Apic.pfnGetTPRR0); 2736 2736 AssertMsgRC(rc, ("%s::%s rc=%Vrc\n", pDevIns->pDevReg->szR0Mod, pApicReg->pszGetTPRR0, rc)); 2737 2737 } 2738 2738 if (RT_SUCCESS(rc)) 2739 2739 { 2740 rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszBusDeliverR0, (void **)&pVM->pdm.s.Apic.pfnBusDeliverR0);2740 rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pApicReg->pszBusDeliverR0, &pVM->pdm.s.Apic.pfnBusDeliverR0); 2741 2741 AssertMsgRC(rc, ("%s::%s rc=%Vrc\n", pDevIns->pDevReg->szR0Mod, pApicReg->pszBusDeliverR0, rc)); 2742 2742 } … … 2879 2879 && pIoApicReg->pszSetIrqR0) 2880 2880 { 2881 int rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pIoApicReg->pszSetIrqR0, (void **)&pVM->pdm.s.IoApic.pfnSetIrqR0);2881 int rc = PDMR3GetSymbolR0Lazy(pVM, pDevIns->pDevReg->szR0Mod, pIoApicReg->pszSetIrqR0, &pVM->pdm.s.IoApic.pfnSetIrqR0); 2882 2882 AssertMsgRC(rc, ("%s::%s rc=%Vrc\n", pDevIns->pDevReg->szR0Mod, pIoApicReg->pszSetIrqR0, rc)); 2883 2883 if (VBOX_FAILURE(rc)) … … 3783 3783 VM_ASSERT_EMT(pDevIns->Internal.s.pVMHC); 3784 3784 PCPDMPICHLPR0 pR0Helpers = 0; 3785 int rc = PDMR3GetSymbolR0(pDevIns->Internal.s.pVMHC, NULL, "g_pdmR0PicHlp", (void **)&pR0Helpers);3785 int rc = PDMR3GetSymbolR0(pDevIns->Internal.s.pVMHC, NULL, "g_pdmR0PicHlp", &pR0Helpers); 3786 3786 AssertReleaseRC(rc); 3787 3787 AssertRelease(pR0Helpers); … … 3870 3870 VM_ASSERT_EMT(pDevIns->Internal.s.pVMHC); 3871 3871 PCPDMAPICHLPR0 pR0Helpers = 0; 3872 int rc = PDMR3GetSymbolR0(pDevIns->Internal.s.pVMHC, NULL, "g_pdmR0ApicHlp", (void **)&pR0Helpers);3872 int rc = PDMR3GetSymbolR0(pDevIns->Internal.s.pVMHC, NULL, "g_pdmR0ApicHlp", &pR0Helpers); 3873 3873 AssertReleaseRC(rc); 3874 3874 AssertRelease(pR0Helpers); … … 3934 3934 VM_ASSERT_EMT(pDevIns->Internal.s.pVMHC); 3935 3935 PCPDMIOAPICHLPR0 pR0Helpers = 0; 3936 int rc = PDMR3GetSymbolR0(pDevIns->Internal.s.pVMHC, NULL, "g_pdmR0IoApicHlp", (void **)&pR0Helpers);3936 int rc = PDMR3GetSymbolR0(pDevIns->Internal.s.pVMHC, NULL, "g_pdmR0IoApicHlp", &pR0Helpers); 3937 3937 AssertReleaseRC(rc); 3938 3938 AssertRelease(pR0Helpers); … … 4006 4006 VM_ASSERT_EMT(pDevIns->Internal.s.pVMHC); 4007 4007 PCPDMPCIHLPR0 pR0Helpers = 0; 4008 int rc = PDMR3GetSymbolR0(pDevIns->Internal.s.pVMHC, NULL, "g_pdmR0PciHlp", (void **)&pR0Helpers);4008 int rc = PDMR3GetSymbolR0(pDevIns->Internal.s.pVMHC, NULL, "g_pdmR0PciHlp", &pR0Helpers); 4009 4009 AssertReleaseRC(rc); 4010 4010 AssertRelease(pR0Helpers); -
trunk/src/VBox/VMM/PDMLdr.cpp
r1890 r2291 646 646 * @param ppvValue Where to store the symbol value. 647 647 */ 648 PDMR3DECL(int) PDMR3GetSymbolR0(PVM pVM, const char *pszModule, const char *pszSymbol, void **ppvValue)648 PDMR3DECL(int) PDMR3GetSymbolR0(PVM pVM, const char *pszModule, const char *pszSymbol, PRTR0PTR ppvValue) 649 649 { 650 650 #ifdef PDMLDR_FAKE_MODE 651 *ppvValue = (void *)0xdeadbeef;651 *ppvValue = 0xdeadbeef; 652 652 return VINF_SUCCESS; 653 653 … … 668 668 && !strcmp(pModule->szName, pszModule)) 669 669 { 670 int rc = SUPGetSymbolR0((void *)(uintptr_t)pModule->ImageBase, pszSymbol, ppvValue);670 int rc = SUPGetSymbolR0((void *)(uintptr_t)pModule->ImageBase, pszSymbol, (void **)ppvValue); 671 671 if (VBOX_FAILURE(rc)) 672 672 { … … 694 694 * @param ppvValue Where to store the symbol value. 695 695 */ 696 PDMR3DECL(int) PDMR3GetSymbolR0Lazy(PVM pVM, const char *pszModule, const char *pszSymbol, void **ppvValue)696 PDMR3DECL(int) PDMR3GetSymbolR0Lazy(PVM pVM, const char *pszModule, const char *pszSymbol, PRTR0PTR ppvValue) 697 697 { 698 698 #ifdef PDMLDR_FAKE_MODE 699 *ppvValue = (void *)0xdeadbeef;699 *ppvValue = 0xdeadbeef; 700 700 return VINF_SUCCESS; 701 701 -
trunk/src/VBox/VMM/PGMBth.h
r23 r2291 89 89 90 90 /* Ring 0 */ 91 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(Trap0eHandler), (void **)&pModeData->pfnR0BthTrap0eHandler);91 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(Trap0eHandler), &pModeData->pfnR0BthTrap0eHandler); 92 92 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_BTH_NAME_R0_STR(Trap0eHandler), rc), rc); 93 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(InvalidatePage), (void **)&pModeData->pfnR0BthInvalidatePage);93 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(InvalidatePage), &pModeData->pfnR0BthInvalidatePage); 94 94 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_BTH_NAME_R0_STR(InvalidatePage), rc), rc); 95 95 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(SyncCR3), &pModeData->pfnR0BthSyncCR3); 96 96 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_BTH_NAME_R0_STR(SyncCR3), rc), rc); 97 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(SyncPage), (void **)&pModeData->pfnR0BthSyncPage);97 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(SyncPage), &pModeData->pfnR0BthSyncPage); 98 98 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_BTH_NAME_R0_STR(SyncPage), rc), rc); 99 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(PrefetchPage), (void **)&pModeData->pfnR0BthPrefetchPage);99 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(PrefetchPage), &pModeData->pfnR0BthPrefetchPage); 100 100 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_BTH_NAME_R0_STR(PrefetchPage), rc), rc); 101 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(VerifyAccessSyncPage), (void **)&pModeData->pfnR0BthVerifyAccessSyncPage);101 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(VerifyAccessSyncPage), &pModeData->pfnR0BthVerifyAccessSyncPage); 102 102 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_BTH_NAME_R0_STR(VerifyAccessSyncPage), rc), rc); 103 103 #ifdef VBOX_STRICT 104 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(AssertCR3), (void **)&pModeData->pfnR0BthAssertCR3);104 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_BTH_NAME_R0_STR(AssertCR3), &pModeData->pfnR0BthAssertCR3); 105 105 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_BTH_NAME_R0_STR(AssertCR3), rc), rc); 106 106 #endif -
trunk/src/VBox/VMM/PGMGst.h
r23 r2291 165 165 166 166 /* Ring-0 */ 167 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(GetPage), (void **)&pModeData->pfnR0GstGetPage);167 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(GetPage), &pModeData->pfnR0GstGetPage); 168 168 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_GST_NAME_R0_STR(GetPage), rc), rc); 169 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(ModifyPage), (void **)&pModeData->pfnR0GstModifyPage);169 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(ModifyPage), &pModeData->pfnR0GstModifyPage); 170 170 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_GST_NAME_R0_STR(ModifyPage), rc), rc); 171 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(GetPDE), (void **)&pModeData->pfnR0GstGetPDE);171 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(GetPDE), &pModeData->pfnR0GstGetPDE); 172 172 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_GST_NAME_R0_STR(GetPDE), rc), rc); 173 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(MonitorCR3), (void **)&pModeData->pfnR0GstMonitorCR3);173 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(MonitorCR3), &pModeData->pfnR0GstMonitorCR3); 174 174 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_GST_NAME_R0_STR(MonitorCR3), rc), rc); 175 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(UnmonitorCR3), (void **)&pModeData->pfnR0GstUnmonitorCR3);175 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(UnmonitorCR3), &pModeData->pfnR0GstUnmonitorCR3); 176 176 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_GST_NAME_R0_STR(UnmonitorCR3), rc), rc); 177 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(MapCR3), (void **)&pModeData->pfnR0GstMapCR3);177 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(MapCR3), &pModeData->pfnR0GstMapCR3); 178 178 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_GST_NAME_R0_STR(MapCR3), rc), rc); 179 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(UnmapCR3), (void **)&pModeData->pfnR0GstUnmapCR3);179 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(UnmapCR3), &pModeData->pfnR0GstUnmapCR3); 180 180 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_GST_NAME_R0_STR(UnmapCR3), rc), rc); 181 181 #if PGM_GST_TYPE == PGM_TYPE_32BIT || PGM_GST_TYPE == PGM_TYPE_PAE 182 182 # if 0/** @todo ring-0. */ 183 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(WriteHandlerCR3), (void **)&pModeData->pfnR0GstWriteHandlerCR3);183 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_GST_NAME_R0_STR(WriteHandlerCR3), &pModeData->pfnR0GstWriteHandlerCR3); 184 184 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_GST_NAME_R0_STR(WriteHandlerCR3), rc), rc); 185 185 # endif -
trunk/src/VBox/VMM/PGMHandler.cpp
r2270 r2291 114 114 int rc = VINF_SUCCESS; 115 115 if (HWACCMR3IsAllowed(pVM)) 116 rc = PDMR3GetSymbolR0Lazy(pVM, pszModR0, pszHandlerR0, (void **)&pfnHandlerR0);116 rc = PDMR3GetSymbolR0Lazy(pVM, pszModR0, pszHandlerR0, &pfnHandlerR0); 117 117 if (VBOX_SUCCESS(rc)) 118 118 { -
trunk/src/VBox/VMM/PGMPool.cpp
r23 r2291 377 377 if (!pVM->pgm.s.pPoolHC->pfnAccessHandlerR0) 378 378 { 379 rc = PDMR3GetSymbolR0(pVM, NULL, "pgmPoolAccessHandler", (void **)&pVM->pgm.s.pPoolHC->pfnAccessHandlerR0);379 rc = PDMR3GetSymbolR0(pVM, NULL, "pgmPoolAccessHandler", &pVM->pgm.s.pPoolHC->pfnAccessHandlerR0); 380 380 AssertReleaseRC(rc); 381 381 } -
trunk/src/VBox/VMM/PGMShw.h
r23 r2291 132 132 133 133 /* Ring-0 */ 134 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_SHW_NAME_R0_STR(GetPage), (void **)&pModeData->pfnR0ShwGetPage);134 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_SHW_NAME_R0_STR(GetPage), &pModeData->pfnR0ShwGetPage); 135 135 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_SHW_NAME_R0_STR(GetPage), rc), rc); 136 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_SHW_NAME_R0_STR(ModifyPage), (void **)&pModeData->pfnR0ShwModifyPage);136 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_SHW_NAME_R0_STR(ModifyPage), &pModeData->pfnR0ShwModifyPage); 137 137 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_SHW_NAME_R0_STR(ModifyPage), rc), rc); 138 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_SHW_NAME_R0_STR(GetPDEByIndex), (void **)&pModeData->pfnR0ShwGetPDEByIndex);138 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_SHW_NAME_R0_STR(GetPDEByIndex), &pModeData->pfnR0ShwGetPDEByIndex); 139 139 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_SHW_NAME_R0_STR(GetPDEByIndex), rc), rc); 140 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_SHW_NAME_R0_STR(SetPDEByIndex), (void **)&pModeData->pfnR0ShwSetPDEByIndex);140 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_SHW_NAME_R0_STR(SetPDEByIndex), &pModeData->pfnR0ShwSetPDEByIndex); 141 141 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_SHW_NAME_R0_STR(SetPDEByIndex), rc), rc); 142 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_SHW_NAME_R0_STR(ModifyPDEByIndex), (void **)&pModeData->pfnR0ShwModifyPDEByIndex);142 rc = PDMR3GetSymbolR0(pVM, NULL, PGM_SHW_NAME_R0_STR(ModifyPDEByIndex), &pModeData->pfnR0ShwModifyPDEByIndex); 143 143 AssertMsgRCReturn(rc, ("%s -> rc=%Vrc\n", PGM_SHW_NAME_R0_STR(ModifyPDEByIndex), rc), rc); 144 144 } -
trunk/src/VBox/VMM/VMM.cpp
r2289 r2291 870 870 if (!pR0Logger->fCreated) 871 871 { 872 RT HCPTR pfnLoggerWrapper = NULL;872 RTR0PTR pfnLoggerWrapper = NIL_RTR0PTR; 873 873 rc = PDMR3GetSymbolR0(pVM, VMMR0_MAIN_MODULE_NAME, "vmmR0LoggerWrapper", &pfnLoggerWrapper); 874 874 AssertReleaseMsgRCReturn(rc, ("VMMLoggerWrapper not found! rc=%Vra\n", rc), rc); 875 875 876 RT HCPTR pfnLoggerFlush = NULL;876 RTR0PTR pfnLoggerFlush = NIL_RTR0PTR; 877 877 rc = PDMR3GetSymbolR0(pVM, VMMR0_MAIN_MODULE_NAME, "vmmR0LoggerFlush", &pfnLoggerFlush); 878 878 AssertReleaseMsgRCReturn(rc, ("VMMLoggerFlush not found! rc=%Vra\n", rc), rc);
Note:
See TracChangeset
for help on using the changeset viewer.