儲存庫 vbox 的更動 18470
- 時間撮記:
- 2009-3-28 下午11:25:58 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMR0/GVMMR0.cpp
r18213 r18470 585 585 * Allocate the shared VM structure and associated page array. 586 586 */ 587 const size_tcbVM = RT_UOFFSETOF(VM, aCpus[cCPUs]);588 const size_t cPages = RT_ALIGN(cbVM, PAGE_SIZE) >> PAGE_SHIFT;587 const uint32_t cbVM = RT_UOFFSETOF(VM, aCpus[cCPUs]); 588 const uint32_t cPages = RT_ALIGN_32(cbVM, PAGE_SIZE) >> PAGE_SHIFT; 589 589 rc = RTR0MemObjAllocLow(&pGVM->gvmm.s.VMMemObj, cPages << PAGE_SHIFT, false /* fExecutable */); 590 590 if (RT_SUCCESS(rc)) … … 604 604 { 605 605 PSUPPAGE paPages = (PSUPPAGE)RTR0MemObjAddress(pGVM->gvmm.s.VMPagesMemObj); AssertPtr(paPages); 606 for ( size_t iPage = 0; iPage < cPages; iPage++)606 for (uint32_t iPage = 0; iPage < cPages; iPage++) 607 607 { 608 608 paPages[iPage].uReserved = 0;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器