- Timestamp:
- Nov 5, 2010 4:14:07 PM (14 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMDevHlp.cpp
r33236 r33799 595 595 LogFlow(("pdmR3DevHlp_TMUtcNow: caller='%s'/%d: returns %RU64\n", pDevIns->pReg->szName, pDevIns->iInstance, RTTimeSpecGetNano(pTime))); 596 596 return pTime; 597 } 598 599 600 /** @interface_method_impl{PDMDEVHLPR3,pfnTMTimeVirtGet} */ 601 static DECLCALLBACK(uint64_t) pdmR3DevHlp_TMTimeVirtGet(PPDMDEVINS pDevIns) 602 { 603 PDMDEV_ASSERT_DEVINS(pDevIns); 604 LogFlow(("pdmR3DevHlp_TMTimeVirtGet: caller='%s'\n", 605 pDevIns->pReg->szName, pDevIns->iInstance)); 606 607 uint64_t u64Time = TMVirtualSyncGet(pDevIns->Internal.s.pVMR3); 608 609 LogFlow(("pdmR3DevHlp_TMTimeVirtGet: caller='%s'/%d: returns %RU64\n", pDevIns->pReg->szName, pDevIns->iInstance, u64Time)); 610 return u64Time; 611 } 612 613 614 /** @interface_method_impl{PDMDEVHLPR3,pfnTMTimeVirtGetFreq} */ 615 static DECLCALLBACK(uint64_t) pdmR3DevHlp_TMTimeVirtGetFreq(PPDMDEVINS pDevIns) 616 { 617 PDMDEV_ASSERT_DEVINS(pDevIns); 618 LogFlow(("pdmR3DevHlp_TMTimeVirtGetFreq: caller='%s'\n", 619 pDevIns->pReg->szName, pDevIns->iInstance)); 620 621 uint64_t u64Freq = TMVirtualGetFreq(pDevIns->Internal.s.pVMR3); 622 623 LogFlow(("pdmR3DevHlp_TMTimeVirtGetFreq: caller='%s'/%d: returns %RU64\n", pDevIns->pReg->szName, pDevIns->iInstance, u64Freq)); 624 return u64Freq; 625 } 626 627 628 /** @interface_method_impl{PDMDEVHLPR3,pfnTMTimeVirtGetNano} */ 629 static DECLCALLBACK(uint64_t) pdmR3DevHlp_TMTimeVirtGetNano(PPDMDEVINS pDevIns) 630 { 631 PDMDEV_ASSERT_DEVINS(pDevIns); 632 LogFlow(("pdmR3DevHlp_TMTimeVirtGetNano: caller='%s'\n", 633 pDevIns->pReg->szName, pDevIns->iInstance)); 634 635 uint64_t u64Time = TMVirtualSyncGet(pDevIns->Internal.s.pVMR3); 636 uint64_t u64Nano = TMVirtualToNano(pDevIns->Internal.s.pVMR3, u64Time); 637 638 LogFlow(("pdmR3DevHlp_TMTimeVirtGetNano: caller='%s'/%d: returns %RU64\n", pDevIns->pReg->szName, pDevIns->iInstance, u64Nano)); 639 return u64Nano; 597 640 } 598 641 … … 3147 3190 pdmR3DevHlp_A20Set, 3148 3191 pdmR3DevHlp_GetCpuId, 3192 pdmR3DevHlp_TMTimeVirtGet, 3193 pdmR3DevHlp_TMTimeVirtGetFreq, 3194 pdmR3DevHlp_TMTimeVirtGetNano, 3149 3195 PDM_DEVHLPR3_VERSION /* the end */ 3150 3196 }; … … 3354 3400 pdmR3DevHlp_Untrusted_A20Set, 3355 3401 pdmR3DevHlp_Untrusted_GetCpuId, 3402 pdmR3DevHlp_TMTimeVirtGet, 3403 pdmR3DevHlp_TMTimeVirtGetFreq, 3404 pdmR3DevHlp_TMTimeVirtGetNano, 3356 3405 PDM_DEVHLPR3_VERSION /* the end */ 3357 3406 }; -
trunk/src/VBox/VMM/VMMGC/PDMGCDevice.cpp
r32935 r33799 233 233 LogFlow(("pdmRCDevHlp_GetVMCPU: caller='%p'/%d\n", pDevIns, pDevIns->iInstance)); 234 234 return VMMGetCpu(pDevIns->Internal.s.pVMRC); 235 } 236 237 238 /** @interface_method_impl{PDMDEVHLPRC,pfnTMTimeVirtGet} */ 239 static DECLCALLBACK(uint64_t) pdmRCDevHlp_TMTimeVirtGet(PPDMDEVINS pDevIns) 240 { 241 PDMDEV_ASSERT_DEVINS(pDevIns); 242 LogFlow(("pdmRCDevHlp_TMTimeVirtGet: caller='%p'/%d\n", pDevIns, pDevIns->iInstance)); 243 return TMVirtualGet(pDevIns->Internal.s.pVMRC); 244 } 245 246 247 /** @interface_method_impl{PDMDEVHLPRC,pfnTMTimeVirtGetFreq} */ 248 static DECLCALLBACK(uint64_t) pdmRCDevHlp_TMTimeVirtGetFreq(PPDMDEVINS pDevIns) 249 { 250 PDMDEV_ASSERT_DEVINS(pDevIns); 251 LogFlow(("pdmRCDevHlp_TMTimeVirtGetFreq: caller='%p'/%d\n", pDevIns, pDevIns->iInstance)); 252 return TMVirtualGetFreq(pDevIns->Internal.s.pVMRC); 253 } 254 255 256 /** @interface_method_impl{PDMDEVHLPRC,pfnTMTimeVirtGetNano} */ 257 static DECLCALLBACK(uint64_t) pdmRCDevHlp_TMTimeVirtGetNano(PPDMDEVINS pDevIns) 258 { 259 PDMDEV_ASSERT_DEVINS(pDevIns); 260 LogFlow(("pdmRCDevHlp_TMTimeVirtGetNano: caller='%p'/%d\n", pDevIns, pDevIns->iInstance)); 261 return TMVirtualToNano(pDevIns->Internal.s.pVMRC, TMVirtualGet(pDevIns->Internal.s.pVMRC)); 235 262 } 236 263 … … 255 282 pdmRCDevHlp_GetVM, 256 283 pdmRCDevHlp_GetVMCPU, 284 pdmRCDevHlp_TMTimeVirtGet, 285 pdmRCDevHlp_TMTimeVirtGetFreq, 286 pdmRCDevHlp_TMTimeVirtGetNano, 257 287 PDM_DEVHLPRC_VERSION 258 288 }; -
trunk/src/VBox/VMM/VMMR0/PDMR0Device.cpp
r32935 r33799 249 249 LogFlow(("pdmR0DevHlp_GetVMCPU: caller='%p'/%d\n", pDevIns, pDevIns->iInstance)); 250 250 return VMMGetCpu(pDevIns->Internal.s.pVMR0); 251 } 252 253 254 /** @interface_method_impl{PDMDEVHLPR0,pfnTMTimeVirtGet} */ 255 static DECLCALLBACK(uint64_t) pdmR0DevHlp_TMTimeVirtGet(PPDMDEVINS pDevIns) 256 { 257 PDMDEV_ASSERT_DEVINS(pDevIns); 258 LogFlow(("pdmR0DevHlp_TMTimeVirtGet: caller='%p'/%d\n", pDevIns, pDevIns->iInstance)); 259 return TMVirtualGet(pDevIns->Internal.s.pVMR0); 260 } 261 262 263 /** @interface_method_impl{PDMDEVHLPR0,pfnTMTimeVirtGetFreq} */ 264 static DECLCALLBACK(uint64_t) pdmR0DevHlp_TMTimeVirtGetFreq(PPDMDEVINS pDevIns) 265 { 266 PDMDEV_ASSERT_DEVINS(pDevIns); 267 LogFlow(("pdmR0DevHlp_TMTimeVirtGetFreq: caller='%p'/%d\n", pDevIns, pDevIns->iInstance)); 268 return TMVirtualGetFreq(pDevIns->Internal.s.pVMR0); 269 } 270 271 272 /** @interface_method_impl{PDMDEVHLPR0,pfnTMTimeVirtGetNano} */ 273 static DECLCALLBACK(uint64_t) pdmR0DevHlp_TMTimeVirtGetNano(PPDMDEVINS pDevIns) 274 { 275 PDMDEV_ASSERT_DEVINS(pDevIns); 276 LogFlow(("pdmR0DevHlp_TMTimeVirtGetNano: caller='%p'/%d\n", pDevIns, pDevIns->iInstance)); 277 return TMVirtualToNano(pDevIns->Internal.s.pVMR0, TMVirtualGet(pDevIns->Internal.s.pVMR0)); 251 278 } 252 279 … … 272 299 pdmR0DevHlp_CanEmulateIoBlock, 273 300 pdmR0DevHlp_GetVMCPU, 301 pdmR0DevHlp_TMTimeVirtGet, 302 pdmR0DevHlp_TMTimeVirtGetFreq, 303 pdmR0DevHlp_TMTimeVirtGetNano, 274 304 PDM_DEVHLPR0_VERSION 275 305 };
Note:
See TracChangeset
for help on using the changeset viewer.