Changeset 64710 in vbox for trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-PagingProtect.c
- Timestamp:
- Nov 18, 2016 11:20:38 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-PagingProtect.c
r64703 r64710 145 145 * @param prc Updated only on failure. 146 146 */ 147 #undef bs3PagingGetP te148 BS3_CMN_DEF(X86PTEPAE BS3_FAR *, bs3PagingGetP te,(RTCCUINTXREG cr3, uint8_t bMode, uint64_t uFlat, bool fUseInvlPg, int *prc))147 #undef bs3PagingGetPaePte 148 BS3_CMN_DEF(X86PTEPAE BS3_FAR *, bs3PagingGetPaePte,(RTCCUINTXREG cr3, uint8_t bMode, uint64_t uFlat, bool fUseInvlPg, int *prc)) 149 149 { 150 150 X86PTEPAE BS3_FAR *pPTE = NULL; … … 174 174 pPD = (X86PDPAE BS3_FAR *)Bs3XptrFlatToCurrent(pPdpt->a[iPdpte].u & ~(uint64_t)PAGE_OFFSET_MASK); 175 175 else 176 BS3PAGING_DPRINTF1(("bs3PagingGetP te: out of range! iPdpte=%#x: %RX64 max=%RX32\n",176 BS3PAGING_DPRINTF1(("bs3PagingGetPaePte: out of range! iPdpte=%#x: %RX64 max=%RX32\n", 177 177 iPdpte, pPdpt->a[iPdpte].u, (uint32_t)uMaxAddr)); 178 178 } … … 203 203 pPD = (X86PDPAE BS3_FAR *)Bs3XptrFlatToCurrent(pPdpt->a[iPdpte].u & X86_PDPE_PG_MASK); 204 204 else 205 BS3PAGING_DPRINTF1(("bs3PagingGetP te: out of range! iPdpte=%#x: %RX64 max=%RX32\n",205 BS3PAGING_DPRINTF1(("bs3PagingGetPaePte: out of range! iPdpte=%#x: %RX64 max=%RX32\n", 206 206 iPdpte, pPdpt->a[iPdpte].u, (uint32_t)uMaxAddr)); 207 207 } … … 209 209 { 210 210 pPD = NULL; 211 BS3PAGING_DPRINTF1(("bs3PagingGetP te: out of range! uFlat=%#RX64 max=%RX32\n", uFlat, (uint32_t)uMaxAddr));211 BS3PAGING_DPRINTF1(("bs3PagingGetPaePte: out of range! uFlat=%#RX64 max=%RX32\n", uFlat, (uint32_t)uMaxAddr)); 212 212 } 213 213 if (pPD) … … 220 220 pPTE = &((X86PTPAE BS3_FAR *)Bs3XptrFlatToCurrent(pPD->a[iPde].u & ~(uint64_t)PAGE_OFFSET_MASK))->a[iPte]; 221 221 else 222 BS3PAGING_DPRINTF1(("bs3PagingGetP te: out of range! iPde=%#x: %RX64 max=%RX32\n",222 BS3PAGING_DPRINTF1(("bs3PagingGetPaePte: out of range! iPde=%#x: %RX64 max=%RX32\n", 223 223 iPde, pPD->a[iPde].u, (uint32_t)uMaxAddr)); 224 224 } … … 249 249 } 250 250 else 251 BS3PAGING_DPRINTF1(("bs3PagingGetP te: out of range! cr3=%#RX32 uMaxAddr=%#RX32\n", (uint32_t)cr3, (uint32_t)uMaxAddr));251 BS3PAGING_DPRINTF1(("bs3PagingGetPaePte: out of range! cr3=%#RX32 uMaxAddr=%#RX32\n", (uint32_t)cr3, (uint32_t)uMaxAddr)); 252 252 return pPTE; 253 253 } … … 314 314 while (cb > 0) 315 315 { 316 PX86PTEPAE pPte = BS3_CMN_FAR_NM(bs3PagingGetP te)(cr3, g_bBs3CurrentMode, uFlat, fUseInvlPg, &rc);316 PX86PTEPAE pPte = BS3_CMN_FAR_NM(bs3PagingGetPaePte)(cr3, g_bBs3CurrentMode, uFlat, fUseInvlPg, &rc); 317 317 if (!pPte) 318 318 return rc; … … 374 374 prc = &rc; 375 375 if (!fLegacyPTs) 376 return BS3_CMN_FAR_NM(bs3PagingGetP te)(cr3, g_bBs3CurrentMode, uFlat, fUseInvlPg, prc);376 return BS3_CMN_FAR_NM(bs3PagingGetPaePte)(cr3, g_bBs3CurrentMode, uFlat, fUseInvlPg, prc); 377 377 if (uFlat < _4G) 378 378 return BS3_CMN_FAR_NM(bs3PagingGetLegacyPte)(cr3, (uint32_t)uFlat, fUseInvlPg, prc);
Note:
See TracChangeset
for help on using the changeset viewer.