Changeset 64710 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Nov 18, 2016 11:20:38 AM (8 years ago)
- Location:
- trunk/src/VBox/ValidationKit/bootsectors/bs3kit
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-PagingAlias.c
r64703 r64710 125 125 while (cPages > 0) 126 126 { 127 pPtePae = bs3PagingGetP te(cr3, g_bBs3CurrentMode, uDst, false, &rc);127 pPtePae = bs3PagingGetPaePte(cr3, g_bBs3CurrentMode, uDst, false, &rc); 128 128 if (pPtePae) 129 129 { … … 149 149 { 150 150 uint32_t cLeftInPt = X86_PG_PAE_ENTRIES - ((uDst >> X86_PT_PAE_SHIFT) & X86_PT_PAE_MASK); 151 pPtePae = bs3PagingGetP te(cr3, g_bBs3CurrentMode, uDst, false, &rc);151 pPtePae = bs3PagingGetPaePte(cr3, g_bBs3CurrentMode, uDst, false, &rc); 152 152 while (cLeftInPt > 0 && cPages > 0) 153 153 { -
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); -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-PagingSetupCanonicalTraps.c
r62471 r64710 63 63 * Get the page table entries first to avoid having to unmap things. 64 64 */ 65 paLoPtes = bs3PagingGetP te(g_PhysPagingRootLM, BS3_MODE_LM64, UINT64_C(0x00007fffffffe000), false, &rc);66 paHiPtes = bs3PagingGetP te(g_PhysPagingRootLM, BS3_MODE_LM64, UINT64_C(0xffff800000000000), false, &rc);65 paLoPtes = bs3PagingGetPaePte(g_PhysPagingRootLM, BS3_MODE_LM64, UINT64_C(0x00007fffffffe000), false, &rc); 66 paHiPtes = bs3PagingGetPaePte(g_PhysPagingRootLM, BS3_MODE_LM64, UINT64_C(0xffff800000000000), false, &rc); 67 67 if (!paHiPtes || !paLoPtes) 68 68 { -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-paging.h
r60682 r64710 45 45 #undef bs3PagingGetLegacyPte 46 46 BS3_CMN_PROTO_STUB(X86PTE BS3_FAR *, bs3PagingGetLegacyPte,(RTCCUINTXREG cr3, uint32_t uFlat, bool fUseInvlPg, int *prc)); 47 #undef bs3PagingGetP te48 BS3_CMN_PROTO_STUB(X86PTEPAE BS3_FAR *, bs3PagingGetP te,(RTCCUINTXREG cr3, uint8_t bMode, uint64_t uFlat,49 bool fUseInvlPg, int *prc));47 #undef bs3PagingGetPaePte 48 BS3_CMN_PROTO_STUB(X86PTEPAE BS3_FAR *, bs3PagingGetPaePte,(RTCCUINTXREG cr3, uint8_t bMode, uint64_t uFlat, 49 bool fUseInvlPg, int *prc)); 50 50 51 51 RT_C_DECLS_END -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-autostubs.kmk
r64703 r64710 41 41 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3PagingInitRootForPAE) 42 42 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3PagingInitRootForPP) 43 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3PagingProtectPtr) 43 44 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3PagingProtect) 44 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3PagingProtectPtr)45 45 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3PagingUnalias) 46 46 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3SwitchFromV86To16BitAndCallC) … … 68 68 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3PagingGetPte) 69 69 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3PagingSetupCanonicalTraps) 70 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3SlabAllocEx) 70 71 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3SlabAlloc) 71 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3Slab AllocEx)72 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3SlabListAllocEx) 72 73 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3SlabListAlloc) 73 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3SlabListAllocEx)74 74 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3MemFree) 75 75 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3MemGuardedTestPageFree) … … 105 105 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3TestSubV) 106 106 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3TestTerm) 107 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3Trap16InitEx) 107 108 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3Trap16Init) 108 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3Trap16InitEx)109 109 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3Trap16SetGate) 110 110 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3Trap32Init) … … 115 115 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3TrapPrintFrame) 116 116 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3TrapReInit) 117 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3TrapRmV86InitEx) 117 118 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3TrapRmV86Init) 118 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3TrapRmV86InitEx)119 119 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3TrapRmV86SetGate) 120 120 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3TrapSetHandlerEx) … … 124 124 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,Bs3UInt64Div) 125 125 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,bs3PagingGetLegacyPte) 126 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,bs3PagingGetP te)126 $(call BS3KIT_FN_GEN_CMN_NEARSTUB,bs3kit-common-16,bs3PagingGetPaePte) 127 127 $(call BS3KIT_FN_GEN_MODE_NEARSTUB,bs3kit-common-16,Bs3SwitchTo32BitAndCallC) 128 128 $(call BS3KIT_FN_GEN_MODE_NEARSTUB,bs3kit-common-16,Bs3TrapInit) -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-mangling-code-define.h
r64703 r64710 50 50 #define Bs3PagingAlias BS3_CMN_MANGLER(Bs3PagingAlias) 51 51 #define bs3PagingGetLegacyPte BS3_CMN_MANGLER(bs3PagingGetLegacyPte) 52 #define bs3PagingGetPaePte BS3_CMN_MANGLER(bs3PagingGetPaePte) 52 53 #define Bs3PagingGetPde BS3_CMN_MANGLER(Bs3PagingGetPde) 53 54 #define Bs3PagingGetPte BS3_CMN_MANGLER(Bs3PagingGetPte) 54 #define bs3PagingGetPte BS3_CMN_MANGLER(bs3PagingGetPte)55 55 #define Bs3PagingInitRootForLM BS3_CMN_MANGLER(Bs3PagingInitRootForLM) 56 56 #define Bs3PagingInitRootForPAE BS3_CMN_MANGLER(Bs3PagingInitRootForPAE) … … 146 146 #define Bs3TrapSetHandler BS3_CMN_MANGLER(Bs3TrapSetHandler) 147 147 #define Bs3TrapSetHandlerEx BS3_CMN_MANGLER(Bs3TrapSetHandlerEx) 148 #define Bs3TrapSetJmpAndRestore BS3_CMN_MANGLER(Bs3TrapSetJmpAndRestore) 148 149 #define Bs3TrapSetJmp BS3_CMN_MANGLER(Bs3TrapSetJmp) 149 #define Bs3TrapSetJmpAndRestore BS3_CMN_MANGLER(Bs3TrapSetJmpAndRestore)150 150 #define Bs3TrapUnsetJmp BS3_CMN_MANGLER(Bs3TrapUnsetJmp) 151 151 #define Bs3UInt32Div BS3_CMN_MANGLER(Bs3UInt32Div) -
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3kit-mangling-code-undef.h
r64703 r64710 50 50 #undef Bs3PagingAlias 51 51 #undef bs3PagingGetLegacyPte 52 #undef bs3PagingGetPaePte 52 53 #undef Bs3PagingGetPde 53 54 #undef Bs3PagingGetPte 54 #undef bs3PagingGetPte55 55 #undef Bs3PagingInitRootForLM 56 56 #undef Bs3PagingInitRootForPAE … … 146 146 #undef Bs3TrapSetHandler 147 147 #undef Bs3TrapSetHandlerEx 148 #undef Bs3TrapSetJmpAndRestore 148 149 #undef Bs3TrapSetJmp 149 #undef Bs3TrapSetJmpAndRestore150 150 #undef Bs3TrapUnsetJmp 151 151 #undef Bs3UInt32Div
Note:
See TracChangeset
for help on using the changeset viewer.