Changeset 80334 in vbox for trunk/src/VBox/VMM/testcase/tstMMHyperHeap.cpp
- Timestamp:
- Aug 17, 2019 12:43:24 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstMMHyperHeap.cpp
r80284 r80334 57 57 void *pvVM = NULL; 58 58 RTR0PTR pvR0 = NIL_RTR0PTR; 59 #ifdef VBOX_BUGREF_921760 59 SUPPAGE aPages[(sizeof(GVM) + NUM_CPUS * sizeof(GVMCPU)) >> PAGE_SHIFT]; 61 #else62 SUPPAGE aPages[(sizeof(VM) + NUM_CPUS * sizeof(VMCPU)) >> PAGE_SHIFT];63 #endif64 60 rc = SUPR3Init(NULL); 65 61 if (RT_FAILURE(rc)) … … 77 73 PVM pVM = (PVM)pvVM; 78 74 pVM->paVMPagesR3 = aPages; 79 #ifdef VBOX_BUGREF_921780 75 pVM->pVMR0ForCall = pvR0; 81 #else82 pVM->pVMR0 = pvR0;83 #endif84 76 85 77 PUVM pUVM = (PUVM)RTMemPageAllocZ(RT_ALIGN_Z(sizeof(*pUVM), PAGE_SIZE)); … … 94 86 95 87 pVM->cCpus = NUM_CPUS; 96 #ifdef VBOX_BUGREF_921797 88 pVM->cbSelf = sizeof(VM); 98 89 pVM->cbVCpu = sizeof(VMCPU); … … 103 94 pVCpu = (PVMCPU)((uintptr_t)pVCpu + sizeof(GVMCPU)); 104 95 } 105 #else106 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 #endif110 96 111 97 rc = STAMR3InitUVM(pUVM);
Note:
See TracChangeset
for help on using the changeset viewer.