vbox的更動 13019 路徑 trunk/src/VBox/VMM/VMMAll/PGMAllMap.cpp
- 時間撮記:
- 2008-10-6 下午04:21:01 (16 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMAll/PGMAllMap.cpp
r12989 r13019 64 64 * Find the mapping. 65 65 */ 66 PPGMMAPPING pCur = CTXALLSUFF(pVM->pgm.s.pMappings);66 PPGMMAPPING pCur = pVM->pgm.s.CTX_SUFF(pMappings); 67 67 while (pCur) 68 68 { … … 91 91 92 92 /* 32-bit */ 93 CTXALLSUFF(pCur->aPTs[iPT].pPT)->a[iPageNo].u = (uint32_t)Pte.u; /* ASSUMES HCPhys < 4GB and/or that we're never gonna do 32-bit on a PAE host! */93 pCur->aPTs[iPT].CTX_SUFF(pPT)->a[iPageNo].u = (uint32_t)Pte.u; /* ASSUMES HCPhys < 4GB and/or that we're never gonna do 32-bit on a PAE host! */ 94 94 95 95 /* pae */ 96 CTXALLSUFF(pCur->aPTs[iPT].paPaePTs)[iPageNo / 512].a[iPageNo % 512].u = Pte.u;96 pCur->aPTs[iPT].CTX_SUFF(paPaePTs)[iPageNo / 512].a[iPageNo % 512].u = Pte.u; 97 97 98 98 /* next */ … … 108 108 109 109 /* next */ 110 pCur = CTXALLSUFF(pCur->pNext);110 pCur = pCur->CTX_SUFF(pNext); 111 111 } 112 112 … … 169 169 * Find the mapping. 170 170 */ 171 PPGMMAPPING pCur = CTXALLSUFF(pVM->pgm.s.pMappings);171 PPGMMAPPING pCur = pVM->pgm.s.CTX_SUFF(pMappings); 172 172 while (pCur) 173 173 { … … 189 189 unsigned iPT = off >> X86_PD_SHIFT; 190 190 unsigned iPTE = (off >> PAGE_SHIFT) & X86_PT_MASK; 191 while (cb > 0 && iPTE < RT_ELEMENTS( CTXALLSUFF(pCur->aPTs[iPT].pPT)->a))191 while (cb > 0 && iPTE < RT_ELEMENTS(pCur->aPTs[iPT].CTX_SUFF(pPT)->a)) 192 192 { 193 193 /* 32-Bit */ 194 CTXALLSUFF(pCur->aPTs[iPT].pPT)->a[iPTE].u &= fMask | X86_PTE_PG_MASK;195 CTXALLSUFF(pCur->aPTs[iPT].pPT)->a[iPTE].u |= fFlags & ~X86_PTE_PG_MASK;194 pCur->aPTs[iPT].CTX_SUFF(pPT)->a[iPTE].u &= fMask | X86_PTE_PG_MASK; 195 pCur->aPTs[iPT].CTX_SUFF(pPT)->a[iPTE].u |= fFlags & ~X86_PTE_PG_MASK; 196 196 197 197 /* PAE */ 198 CTXALLSUFF(pCur->aPTs[iPT].paPaePTs)[iPTE / 512].a[iPTE % 512].u &= fMask | X86_PTE_PAE_PG_MASK;199 CTXALLSUFF(pCur->aPTs[iPT].paPaePTs)[iPTE / 512].a[iPTE % 512].u |= fFlags & ~X86_PTE_PAE_PG_MASK;198 pCur->aPTs[iPT].CTX_SUFF(paPaePTs)[iPTE / 512].a[iPTE % 512].u &= fMask | X86_PTE_PAE_PG_MASK; 199 pCur->aPTs[iPT].CTX_SUFF(paPaePTs)[iPTE / 512].a[iPTE % 512].u |= fFlags & ~X86_PTE_PAE_PG_MASK; 200 200 201 201 /* invalidate tls */ … … 212 212 } 213 213 /* next */ 214 pCur = CTXALLSUFF(pCur->pNext);214 pCur = pCur->CTX_SUFF(pNext); 215 215 } 216 216
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器