VirtualBox

Changeset 31975 in vbox for trunk


Ignore:
Timestamp:
Aug 26, 2010 8:44:16 AM (14 years ago)
Author:
vboxsync
Message:

build fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMDbg.cpp

    r31973 r31975  
    988988 * @param   fIsMapping          Whether it is a mapping.
    989989 */
    990 static int pgmR3DumpHierarchyHCPaePT(PPGMR3DUMPHIERARCHYSTATE pState, RTHCPHYS HCPhys, bool fIsMapping)
     990static int pgmR3DumpHierarchyHcPaePT(PPGMR3DUMPHIERARCHYSTATE pState, RTHCPHYS HCPhys, bool fIsMapping)
    991991{
    992992    PPGMSHWPTPAE pPT;
     
    10601060 * @param   pHlp        Pointer to the output functions.
    10611061 */
    1062 static int  pgmR3DumpHierarchyHCPaePD(PPGMR3DUMPHIERARCHYSTATE pState, RTHCPHYS HCPhys, unsigned cMaxDepth)
     1062static int  pgmR3DumpHierarchyHcPaePD(PPGMR3DUMPHIERARCHYSTATE pState, RTHCPHYS HCPhys, unsigned cMaxDepth)
    10631063{
    10641064    PX86PDPAE pPD;
     
    11351135                if (cMaxDepth)
    11361136                {
    1137                     int rc2 = pgmR3DumpHierarchyHCPaePT(pState, Pde.u & X86_PDE_PAE_PG_MASK_FULL, !!(Pde.u & PGM_PDFLAGS_MAPPING));
     1137                    int rc2 = pgmR3DumpHierarchyHcPaePT(pState, Pde.u & X86_PDE_PAE_PG_MASK_FULL, !!(Pde.u & PGM_PDFLAGS_MAPPING));
    11381138                    if (rc2 < rc && RT_SUCCESS(rc))
    11391139                        rc = rc2;
     
    11601160 * @param   pHlp        Pointer to the output functions.
    11611161 */
    1162 static int  pgmR3DumpHierarchyHCPaePDPT(PPGMR3DUMPHIERARCHYSTATE pState, RTHCPHYS HCPhys, unsigned cMaxDepth)
     1162static int  pgmR3DumpHierarchyHcPaePDPT(PPGMR3DUMPHIERARCHYSTATE pState, RTHCPHYS HCPhys, unsigned cMaxDepth)
    11631163{
    11641164    /* Fend of addresses that are out of range in PAE mode - simplifies the code below. */
     
    12341234            if (cMaxDepth)
    12351235            {
    1236                 int rc2 = pgmR3DumpHierarchyHCPaePD(pState, Pdpe.u & X86_PDPE_PG_MASK_FULL, cMaxDepth);
     1236                int rc2 = pgmR3DumpHierarchyHcPaePD(pState, Pdpe.u & X86_PDPE_PG_MASK_FULL, cMaxDepth);
    12371237                if (rc2 < rc && RT_SUCCESS(rc))
    12381238                    rc = rc2;
     
    12641264    cMaxDepth--;
    12651265
    1266     const uint64_t  u64BaseAddress  = u64BaseAddress & ~(RT_BIT_64(X86_PML4_SHIFT) - 1);
    1267     uint32_t        iFirst          = u64BaseAddress >= pState->u64FirstAddress ? 0
    1268                                     : RT_MIN((pState->u64FirstAddress -u64BaseAddress) >> X86_PML4_SHIFT, X86_PG_PAE_ENTRIES);
    1269     uint32_t        iLast           = RT_MIN((pState->u64LastAddress - u64BaseAddress) >> X86_PML4_SHIFT, X86_PG_PAE_ENTRIES-1);
     1266    /*
     1267     * This is a bit tricky as we're working on unsigned addresses while the
     1268     * AMD64 spec uses signed tricks.
     1269     */
     1270    uint32_t iFirst = (pState->u64FirstAddress >> X86_PML4_SHIFT) & X86_PML4_MASK;
     1271    uint32_t iLast  = (pState->u64LastAddress  >> X86_PML4_SHIFT) & X86_PML4_MASK;
     1272    if (   pState->u64LastAddress  <= UINT64_C(0x00007fffffffffff)
     1273        || pState->u64FirstAddress >= UINT64_C(0xffff800000000000))
     1274    { /* Simple, nothing to adjust */ }
     1275    else if (pState->u64FirstAddress <= UINT64_C(0x00007fffffffffff))
     1276        iLast = X86_PG_AMD64_ENTRIES / 2 - 1;
     1277    else if (pState->u64LastAddress  >= UINT64_C(0xffff800000000000))
     1278        iFirst = X86_PG_AMD64_ENTRIES / 2;
     1279    else
     1280        iFirst = X86_PG_AMD64_ENTRIES; /* neither address is canonical */
     1281
    12701282    for (uint32_t i = iFirst; i <= iLast; i++)
    12711283    {
     
    12991311            if (cMaxDepth)
    13001312            {
    1301                 int rc2 = pgmR3DumpHierarchyHCPaePDPT(pState, Pml4e.u & X86_PML4E_PG_MASK, cMaxDepth);
     1313                int rc2 = pgmR3DumpHierarchyHcPaePDPT(pState, Pml4e.u & X86_PML4E_PG_MASK, cMaxDepth);
    13021314                if (rc2 < rc && RT_SUCCESS(rc))
    13031315                    rc = rc2;
     
    13201332 * @param   pHlp        Pointer to the output functions.
    13211333 */
    1322 static int pgmR3DumpHierarchyHC32BitPT(PPGMR3DUMPHIERARCHYSTATE pState, RTHCPHYS HCPhys, bool fMapping)
     1334static int pgmR3DumpHierarchyHc32BitPT(PPGMR3DUMPHIERARCHYSTATE pState, RTHCPHYS HCPhys, bool fMapping)
    13231335{
    13241336    PX86PT pPT;
     
    13691381 * @param   pHlp        Pointer to the output functions.
    13701382 */
    1371 static int pgmR3DumpHierarchyHC32BitPD(PPGMR3DUMPHIERARCHYSTATE pState, RTHCPHYS HCPhys, unsigned cMaxDepth)
     1383static int pgmR3DumpHierarchyHc32BitPD(PPGMR3DUMPHIERARCHYSTATE pState, RTHCPHYS HCPhys, unsigned cMaxDepth)
    13721384{
    13731385    if (pState->u64Address >= _4G)
     
    14361448                if (cMaxDepth)
    14371449                {
    1438                     int rc2 = pgmR3DumpHierarchyHC32BitPT(pState, Pde.u & X86_PDE_PG_MASK, !!(Pde.u & PGM_PDFLAGS_MAPPING));
     1450                    int rc2 = pgmR3DumpHierarchyHc32BitPT(pState, Pde.u & X86_PDE_PG_MASK, !!(Pde.u & PGM_PDFLAGS_MAPPING));
    14391451                    if (rc2 < rc && RT_SUCCESS(rc))
    14401452                        rc = rc2;
     
    15151527            rc = pgmR3DumpHierarchyHcPaePML4(pState, cr3 & X86_CR3_PAGE_MASK,     cMaxDepth);
    15161528        else if (pState->fPae)
    1517             rc = pgmR3DumpHierarchyHCPaePDPT(pState, cr3 & X86_CR3_PAE_PAGE_MASK, cMaxDepth);
     1529            rc = pgmR3DumpHierarchyHcPaePDPT(pState, cr3 & X86_CR3_PAE_PAGE_MASK, cMaxDepth);
    15181530        else
    1519             rc = pgmR3DumpHierarchyHC32BitPD(pState, cr3 & X86_CR3_PAGE_MASK,     cMaxDepth);
     1531            rc = pgmR3DumpHierarchyHc32BitPD(pState, cr3 & X86_CR3_PAGE_MASK,     cMaxDepth);
    15201532    }
    15211533    return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette