VirtualBox

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


Ignore:
Timestamp:
May 14, 2007 1:47:13 PM (18 years ago)
Author:
vboxsync
Message:

Fixed UTC typo.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PDMDevice.cpp

    r2597 r2623  
    128128static DECLCALLBACK(void) pdmR3DevHlp_STAMRegisterV(PPDMDEVINS pDevIns, void *pvSample, STAMTYPE enmType, STAMVISIBILITY enmVisibility, STAMUNIT enmUnit, const char *pszDesc, const char *pszName, va_list args);
    129129static DECLCALLBACK(int) pdmR3DevHlp_CritSectInit(PPDMDEVINS pDevIns, PPDMCRITSECT pCritSect, const char *pszName);
    130 static DECLCALLBACK(PRTTIMESPEC) pdmR3DevHlp_UCTNow(PPDMDEVINS pDevIns, PRTTIMESPEC pTime);
     130static DECLCALLBACK(PRTTIMESPEC) pdmR3DevHlp_UTCNow(PPDMDEVINS pDevIns, PRTTIMESPEC pTime);
    131131
    132132static DECLCALLBACK(PVM) pdmR3DevHlp_GetVM(PPDMDEVINS pDevIns);
     
    311311    pdmR3DevHlp_PDMQueueCreate,
    312312    pdmR3DevHlp_CritSectInit,
    313     pdmR3DevHlp_UCTNow,
     313    pdmR3DevHlp_UTCNow,
    314314    0,
    315315    0,
     
    396396    pdmR3DevHlp_PDMQueueCreate,
    397397    pdmR3DevHlp_CritSectInit,
    398     pdmR3DevHlp_UCTNow,
     398    pdmR3DevHlp_UTCNow,
    399399    0,
    400400    0,
     
    23372337
    23382338
    2339 /** @copydoc PDMDEVHLP::pfnUCTNow */
    2340 static DECLCALLBACK(PRTTIMESPEC) pdmR3DevHlp_UCTNow(PPDMDEVINS pDevIns, PRTTIMESPEC pTime)
    2341 {
    2342     PDMDEV_ASSERT_DEVINS(pDevIns);
    2343     LogFlow(("pdmR3DevHlp_UCTNow: caller='%s'/%d: pTime=%p\n",
     2339/** @copydoc PDMDEVHLP::pfnUTCNow */
     2340static DECLCALLBACK(PRTTIMESPEC) pdmR3DevHlp_UTCNow(PPDMDEVINS pDevIns, PRTTIMESPEC pTime)
     2341{
     2342    PDMDEV_ASSERT_DEVINS(pDevIns);
     2343    LogFlow(("pdmR3DevHlp_UTCNow: caller='%s'/%d: pTime=%p\n",
    23442344             pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, pTime));
    23452345
    2346     pTime = TMR3UCTNow(pDevIns->Internal.s.pVMHC, pTime);
    2347 
    2348     LogFlow(("pdmR3DevHlp_UCTNow: caller='%s'/%d: returns %RU64\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, RTTimeSpecGetNano(pTime)));
     2346    pTime = TMR3UTCNow(pDevIns->Internal.s.pVMHC, pTime);
     2347
     2348    LogFlow(("pdmR3DevHlp_UTCNow: caller='%s'/%d: returns %RU64\n", pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, RTTimeSpecGetNano(pTime)));
    23492349    return pTime;
    23502350}
  • trunk/src/VBox/VMM/TM.cpp

    r2611 r2623  
    358358
    359359    /*
    360      * Configure real world time (UCT).
    361      */
    362     rc = CFGMR3QueryS64(pCfgHandle, "UCTOffset", &pVM->tm.s.offUCT);
     360     * Configure real world time (UTC).
     361     */
     362    rc = CFGMR3QueryS64(pCfgHandle, "UTCOffset", &pVM->tm.s.offUTC);
    363363    if (rc == VERR_CFGM_VALUE_NOT_FOUND)
    364         pVM->tm.s.offUCT = 0; /* ns */
     364        pVM->tm.s.offUTC = 0; /* ns */
    365365    else if (VBOX_FAILURE(rc))
    366366        return VMSetError(pVM, rc, RT_SRC_POS,
    367                           N_("Configuration error: Failed to querying 64-bit integer value \"UCTOffset\". (%Vrc)"), rc);
     367                          N_("Configuration error: Failed to querying 64-bit integer value \"UTCOffset\". (%Vrc)"), rc);
    368368
    369369    /*
     
    17391739
    17401740/**
    1741  * Get the real world UCT time adjusted for VM lag.
     1741 * Get the real world UTC time adjusted for VM lag.
    17421742 *
    17431743 * @returns pTime.
     
    17451745 * @param   pTime           Where to store the time.
    17461746 */
    1747 TMR3DECL(PRTTIMESPEC) TMR3UCTNow(PVM pVM, PRTTIMESPEC pTime)
     1747TMR3DECL(PRTTIMESPEC) TMR3UTCNow(PVM pVM, PRTTIMESPEC pTime)
    17481748{
    17491749    RTTimeNow(pTime);
    17501750    RTTimeSpecSubNano(pTime, pVM->tm.s.offVirtualSync - pVM->tm.s.offVirtualSyncGivenUp);
    1751     RTTimeSpecAddNano(pTime, pVM->tm.s.offUCT);
     1751    RTTimeSpecAddNano(pTime, pVM->tm.s.offUTC);
    17521752    return pTime;
    17531753}
  • trunk/src/VBox/VMM/TMInternal.h

    r2611 r2623  
    363363    }                           aVirtualSyncCatchUpPeriods[TM_MAX_CATCHUP_PERIODS];
    364364
    365     /** The UCT offset in ns.
     365    /** The UTC offset in ns.
    366366     * This is *NOT* for converting UTC to local time. It is for converting real
    367      * world UCT time to VM UCT time. This feature is indented for doing date
     367     * world UTC time to VM UTC time. This feature is indented for doing date
    368368     * testing of software and similar.
    369      * @todo Implement warpdrive on UCT. */
    370     int64_t                     offUCT;
     369     * @todo Implement warpdrive on UTC. */
     370    int64_t                     offUTC;
    371371
    372372    /** Timer queues for the different clock types - R3 Ptr */
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