VirtualBox

Changeset 8879 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
May 16, 2008 11:13:00 AM (17 years ago)
Author:
vboxsync
Message:

Init idCpu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp

    r8878 r8879  
    511511static DECLCALLBACK(void) HWACCMR0EnableCPU(RTCPUID idCpu, void *pvUser1, void *pvUser2)
    512512{
    513     PVM      pVM = (PVM)pvUser1;
    514     int     *paRc = (int *)pvUser2;
    515     void    *pvPageCpu;
    516     RTHCPHYS pPageCpuPhys;
     513    PVM             pVM = (PVM)pvUser1;
     514    int            *paRc = (int *)pvUser2;
     515    void           *pvPageCpu;
     516    RTHCPHYS        pPageCpuPhys;
     517    PHWACCM_CPUINFO pCpu = &HWACCMR0Globals.aCpuInfo[idCpu];
    517518
    518519    Assert(pVM);
     
    520521    Assert(idCpu < RT_ELEMENTS(HWACCMR0Globals.aCpuInfo));
    521522
     523    pCpu->idCpu = idCpu;
     524
    522525    /* Should never happen */
    523526    if (!HWACCMR0Globals.aCpuInfo[idCpu].pMemObj)
     
    532535    if (pVM->hwaccm.s.vmx.fSupported)
    533536    {
    534         paRc[idCpu] = VMXR0EnableCpu(&HWACCMR0Globals.aCpuInfo[idCpu], pVM, pvPageCpu, pPageCpuPhys);
     537        paRc[idCpu] = VMXR0EnableCpu(pCpu, pVM, pvPageCpu, pPageCpuPhys);
    535538        AssertRC(paRc[idCpu]);
    536539        if (VBOX_SUCCESS(paRc[idCpu]))
     
    540543    if (pVM->hwaccm.s.svm.fSupported)
    541544    {
    542         paRc[idCpu] = SVMR0EnableCpu(&HWACCMR0Globals.aCpuInfo[idCpu], pVM, pvPageCpu, pPageCpuPhys);
     545        paRc[idCpu] = SVMR0EnableCpu(pCpu, pVM, pvPageCpu, pPageCpuPhys);
    543546        AssertRC(paRc[idCpu]);
    544547        if (VBOX_SUCCESS(paRc[idCpu]))
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