VirtualBox

Changeset 26467 in vbox


Ignore:
Timestamp:
Feb 12, 2010 4:12:51 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57627
Message:

EFI: sane TSC esteemation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/DevEFI.cpp

    r26464 r26467  
    11321132    }
    11331133
    1134     pThis->u64FsbFrequency = 1333000000;
    1135     pThis->u64TscFrequency = pThis->u64FsbFrequency * 3;
     1134    /*
     1135     * CPU frequencies
     1136     */
     1137    // @todo: we need to have VMM API to access TSC increase speed, for now provide reasonable default
     1138    pThis->u64TscFrequency = 2500000000; // TMCpuTicksPerSecond(PDMDevHlpGetVM(pDevIns));
     1139    /* Multiplier is read from MSR_IA32_PERF_STATUS, and now is hardcoded as 4 */
     1140    pThis->u64FsbFrequency = pThis->u64TscFrequency / 4;
    11361141    pThis->u64CpuFrequency = pThis->u64TscFrequency;
    11371142    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette