VirtualBox

Changeset 50584 in vbox for trunk/src/VBox/Devices/EFI


Ignore:
Timestamp:
Feb 25, 2014 4:06:26 PM (11 years ago)
Author:
vboxsync
Message:

CPUM,DevEFI: Bus vs cpu clock ratio fixes for more recent CPUs. Older CPUs (<=Core2) still need some more work.

File:
1 edited

Legend:

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

    r48786 r50584  
    2323#include <VBox/vmm/pdmdev.h>
    2424#include <VBox/vmm/pgm.h>
     25#include <VBox/vmm/cpum.h>
    2526#include <VBox/vmm/mm.h>
    2627#include <VBox/log.h>
     
    22092210                                   N_("Configuration error: Querying \"BootArgs\" as a string failed"));
    22102211
    2211     //strcpy(pThis->szBootArgs, "-v keepsyms=1 io=0xf");
     2212    //strcpy(pThis->szBootArgs, "-v keepsyms=1 io=0xf debug=0x2a");
     2213    //strcpy(pThis->szBootArgs, "-v keepsyms=1 debug=0x2a");
    22122214    LogRel(("EFI: boot args = %s\n", pThis->szBootArgs));
    22132215
     
    22392241     */
    22402242    pThis->u64TscFrequency = TMCpuTicksPerSecond(PDMDevHlpGetVM(pDevIns));
    2241     /* Multiplier is read from MSR_IA32_PERF_STATUS, and now is hardcoded as 4. */
    2242     pThis->u64FsbFrequency = pThis->u64TscFrequency / 4;
    22432243    pThis->u64CpuFrequency = pThis->u64TscFrequency;
     2244    pThis->u64FsbFrequency = CPUMGetGuestBusFrequency(PDMDevHlpGetVM(pDevIns));
    22442245
    22452246    /*
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