VirtualBox

Changeset 105 in vbox for trunk


Ignore:
Timestamp:
Jan 17, 2007 3:29:08 PM (18 years ago)
Author:
vboxsync
Message:

style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/SELMAll.cpp

    r98 r105  
    2828#include <VBox/stam.h>
    2929#include <VBox/mm.h>
     30#include <VBox/pgm.h>
    3031#include "SELMInternal.h"
    3132#include <VBox/vm.h>
     
    3536#include <iprt/assert.h>
    3637#include <VBox/log.h>
    37 #include <VBox/pgm.h>
    3838
    3939
     
    503503    if (pVM->selm.s.fSyncTSSRing0Stack)
    504504    {
    505         GCPTRTYPE(uint8_t *)GCPtrTss = (GCPTRTYPE(uint8_t *))pVM->selm.s.GCPtrGuestTss;
     505        GCPTRTYPE(uint8_t *) GCPtrTss = (GCPTRTYPE(uint8_t *))pVM->selm.s.GCPtrGuestTss;
    506506        int     rc;
    507507        VBOXTSS tss;
     
    512512        bool    fTriedAlready = false;
    513513
    514 tryagain:
     514l_tryagain:
    515515        rc  = MMGCRamRead(pVM, &tss.ss0,  GCPtrTss + RT_OFFSETOF(VBOXTSS, ss0), sizeof(tss.ss0));
    516516        rc |= MMGCRamRead(pVM, &tss.esp0, GCPtrTss + RT_OFFSETOF(VBOXTSS, esp0), sizeof(tss.esp0));
     
    529529                if (rc != VINF_SUCCESS)
    530530                    return rc;
    531 
    532                 goto tryagain;
     531                goto l_tryagain;
    533532            }
    534             else
    535             {
    536                 AssertMsgFailed(("Unable to read TSS structure at %08X\n", GCPtrTss));
    537                 return rc;
    538             }
     533            AssertMsgFailed(("Unable to read TSS structure at %08X\n", GCPtrTss));
     534            return rc;
    539535        }
    540 #else /* IN_GC */
     536
     537#else /* !IN_GC */
    541538        /* Reading too much. Could be cheaper than two seperate calls though. */
    542539        rc = PGMPhysReadGCPtr(pVM, &tss, GCPtrTss, sizeof(VBOXTSS));
     
    546543            return rc;
    547544        }
    548 #endif /* IN_GC */
    549 
    550 #ifdef DEBUG
     545#endif /* !IN_GC */
     546
     547#ifdef LOG_ENABLED
    551548        uint32_t ssr0  = pVM->selm.s.Tss.ss1;
    552549        uint32_t espr0 = pVM->selm.s.Tss.esp1;
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