Changeset 81961 in vbox for trunk/src/VBox/VMM/VMMR3/PDMDevMiscHlp.cpp
- Timestamp:
- Nov 18, 2019 7:06:25 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PDMDevMiscHlp.cpp
r81938 r81961 317 317 318 318 319 /** @interface_method_impl{PDMHPETHLPR3,pfnGetRCHelpers} */320 static DECLCALLBACK(PCPDMHPETHLPRC) pdmR3HpetHlp_GetRCHelpers(PPDMDEVINS pDevIns)321 {322 PDMDEV_ASSERT_DEVINS(pDevIns);323 PVM pVM = pDevIns->Internal.s.pVMR3;324 VM_ASSERT_EMT(pVM);325 326 RTRCPTR pRCHelpers = NIL_RTRCPTR;327 if (VM_IS_RAW_MODE_ENABLED(pVM))328 {329 int rc = PDMR3LdrGetSymbolRC(pVM, NULL, "g_pdmRCHpetHlp", &pRCHelpers);330 AssertReleaseRC(rc);331 AssertRelease(pRCHelpers);332 }333 334 LogFlow(("pdmR3HpetHlp_GetGCHelpers: caller='%s'/%d: returns %RRv\n",335 pDevIns->pReg->szName, pDevIns->iInstance, pRCHelpers));336 return pRCHelpers;337 }338 339 340 /** @interface_method_impl{PDMHPETHLPR3,pfnGetR0Helpers} */341 static DECLCALLBACK(PCPDMHPETHLPR0) pdmR3HpetHlp_GetR0Helpers(PPDMDEVINS pDevIns)342 {343 PDMDEV_ASSERT_DEVINS(pDevIns);344 PVM pVM = pDevIns->Internal.s.pVMR3;345 VM_ASSERT_EMT(pVM);346 PCPDMHPETHLPR0 pR0Helpers = 0;347 int rc = PDMR3LdrGetSymbolR0(pVM, NULL, "g_pdmR0HpetHlp", &pR0Helpers);348 AssertReleaseRC(rc);349 AssertRelease(pR0Helpers);350 LogFlow(("pdmR3HpetHlp_GetR0Helpers: caller='%s'/%d: returns %RHv\n",351 pDevIns->pReg->szName, pDevIns->iInstance, pR0Helpers));352 return pR0Helpers;353 }354 355 356 319 /** 357 320 * HPET Device Helpers. … … 360 323 { 361 324 PDM_HPETHLPR3_VERSION, 362 pdmR3HpetHlp_GetRCHelpers,363 pdmR3HpetHlp_GetR0Helpers,364 325 pdmR3HpetHlp_SetLegacyMode, 365 326 pdmR3HpetHlp_SetIrq,
Note:
See TracChangeset
for help on using the changeset viewer.