VirtualBox

Ignore:
Timestamp:
Aug 17, 2019 12:43:24 AM (5 years ago)
Author:
vboxsync
Message:

VMM: Eliminating the VBOX_BUGREF_9217 preprocessor macro. bugref:9217

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstMMHyperHeap.cpp

    r80284 r80334  
    5757    void       *pvVM = NULL;
    5858    RTR0PTR     pvR0 = NIL_RTR0PTR;
    59 #ifdef VBOX_BUGREF_9217
    6059    SUPPAGE     aPages[(sizeof(GVM) + NUM_CPUS * sizeof(GVMCPU)) >> PAGE_SHIFT];
    61 #else
    62     SUPPAGE     aPages[(sizeof(VM) + NUM_CPUS * sizeof(VMCPU)) >> PAGE_SHIFT];
    63 #endif
    6460    rc = SUPR3Init(NULL);
    6561    if (RT_FAILURE(rc))
     
    7773    PVM  pVM = (PVM)pvVM;
    7874    pVM->paVMPagesR3 = aPages;
    79 #ifdef VBOX_BUGREF_9217
    8075    pVM->pVMR0ForCall = pvR0;
    81 #else
    82     pVM->pVMR0 = pvR0;
    83 #endif
    8476
    8577    PUVM pUVM = (PUVM)RTMemPageAllocZ(RT_ALIGN_Z(sizeof(*pUVM), PAGE_SIZE));
     
    9486
    9587    pVM->cCpus = NUM_CPUS;
    96 #ifdef VBOX_BUGREF_9217
    9788    pVM->cbSelf = sizeof(VM);
    9889    pVM->cbVCpu = sizeof(VMCPU);
     
    10394        pVCpu = (PVMCPU)((uintptr_t)pVCpu + sizeof(GVMCPU));
    10495    }
    105 #else
    106     pVM->cbSelf = RT_UOFFSETOF_DYN(VM, aCpus[pVM->cCpus]);
    107     for (VMCPUID idCpu = 0; idCpu < NUM_CPUS; idCpu++)
    108         pVM->apCpusR3[idCpu] = &pVM->aCpus[idCpu];
    109 #endif
    11096
    11197    rc = STAMR3InitUVM(pUVM);
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