Changeset 52670 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Sep 10, 2014 11:04:10 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/DevAPIC.cpp
r52157 r52670 655 655 Log2(("apicGetTPR: returns %#x\n", pApic->tpr)); 656 656 return pApic->tpr; 657 } 658 659 660 PDMBOTHCBDECL(uint64_t) apicGetTimerFreq(PPDMDEVINS pDevIns) 661 { 662 APICDeviceInfo *pDev = PDMINS_2_DATA(pDevIns, APICDeviceInfo *); 663 APICState *pApic = apicGetStateById(pDev, 0); 664 uint64_t uTimer = TMTimerGetFreq(pApic->CTX_SUFF(pTimer)); 665 Log2(("apicGetTimerFreq: returns %#RX64\n", uTimer)); 666 return uTimer; 657 667 } 658 668 … … 2301 2311 ApicReg.pfnBusDeliverR3 = apicBusDeliverCallback; 2302 2312 ApicReg.pfnLocalInterruptR3 = apicLocalInterrupt; 2313 ApicReg.pfnGetTimerFreqR3 = apicGetTimerFreq; 2303 2314 if (fRZEnabled) 2304 2315 { … … 2313 2324 ApicReg.pszBusDeliverRC = "apicBusDeliverCallback"; 2314 2325 ApicReg.pszLocalInterruptRC = "apicLocalInterrupt"; 2326 ApicReg.pszGetTimerFreqRC = "apicGetTimerFreq"; 2315 2327 2316 2328 ApicReg.pszGetInterruptR0 = "apicGetInterrupt"; … … 2324 2336 ApicReg.pszBusDeliverR0 = "apicBusDeliverCallback"; 2325 2337 ApicReg.pszLocalInterruptR0 = "apicLocalInterrupt"; 2338 ApicReg.pszGetTimerFreqR0 = "apicGetTimerFreq"; 2326 2339 } 2327 2340 else … … 2337 2350 ApicReg.pszBusDeliverRC = NULL; 2338 2351 ApicReg.pszLocalInterruptRC = NULL; 2352 ApicReg.pszGetTimerFreqRC = NULL; 2339 2353 2340 2354 ApicReg.pszGetInterruptR0 = NULL; … … 2348 2362 ApicReg.pszBusDeliverR0 = NULL; 2349 2363 ApicReg.pszLocalInterruptR0 = NULL; 2364 ApicReg.pszGetTimerFreqR0 = NULL; 2350 2365 } 2351 2366
Note:
See TracChangeset
for help on using the changeset viewer.