Changeset 20615 in vbox for trunk/src/VBox/VMM/testcase
- Timestamp:
- Jun 16, 2009 9:37:47 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstMMHyperHeap.cpp
r13818 r20615 38 38 #include <iprt/string.h> 39 39 40 /* does not work for more CPUs as SUPLowAlloc() would refuse to allocate more pages */ 41 #define NUM_CPUS 16 42 40 43 41 44 int main(int argc, char **argv) … … 52 55 PVM pVM; 53 56 RTR0PTR pvR0; 54 SUPPAGE aPages[RT_ALIGN_Z(sizeof(*pVM) , PAGE_SIZE) >> PAGE_SHIFT];57 SUPPAGE aPages[RT_ALIGN_Z(sizeof(*pVM) + NUM_CPUS*sizeof (VMCPU), PAGE_SIZE) >> PAGE_SHIFT]; 55 58 int rc = SUPR3Init(NULL); 56 59 if (RT_SUCCESS(rc)) … … 69 72 pUVM->pVM = pVM; 70 73 pVM->pUVM = pUVM; 74 75 pVM->cCPUs = NUM_CPUS; 76 pVM->cbSelf = RT_UOFFSETOF(VM, aCpus[pVM->cCPUs]); 71 77 72 78 rc = STAMR3InitUVM(pUVM);
Note:
See TracChangeset
for help on using the changeset viewer.