- Timestamp:
- Jan 17, 2007 3:29:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/SELMAll.cpp
r98 r105 28 28 #include <VBox/stam.h> 29 29 #include <VBox/mm.h> 30 #include <VBox/pgm.h> 30 31 #include "SELMInternal.h" 31 32 #include <VBox/vm.h> … … 35 36 #include <iprt/assert.h> 36 37 #include <VBox/log.h> 37 #include <VBox/pgm.h>38 38 39 39 … … 503 503 if (pVM->selm.s.fSyncTSSRing0Stack) 504 504 { 505 GCPTRTYPE(uint8_t *) GCPtrTss = (GCPTRTYPE(uint8_t *))pVM->selm.s.GCPtrGuestTss;505 GCPTRTYPE(uint8_t *) GCPtrTss = (GCPTRTYPE(uint8_t *))pVM->selm.s.GCPtrGuestTss; 506 506 int rc; 507 507 VBOXTSS tss; … … 512 512 bool fTriedAlready = false; 513 513 514 tryagain:514 l_tryagain: 515 515 rc = MMGCRamRead(pVM, &tss.ss0, GCPtrTss + RT_OFFSETOF(VBOXTSS, ss0), sizeof(tss.ss0)); 516 516 rc |= MMGCRamRead(pVM, &tss.esp0, GCPtrTss + RT_OFFSETOF(VBOXTSS, esp0), sizeof(tss.esp0)); … … 529 529 if (rc != VINF_SUCCESS) 530 530 return rc; 531 532 goto tryagain; 531 goto l_tryagain; 533 532 } 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; 539 535 } 540 #else /* IN_GC */ 536 537 #else /* !IN_GC */ 541 538 /* Reading too much. Could be cheaper than two seperate calls though. */ 542 539 rc = PGMPhysReadGCPtr(pVM, &tss, GCPtrTss, sizeof(VBOXTSS)); … … 546 543 return rc; 547 544 } 548 #endif /* IN_GC */549 550 #ifdef DEBUG545 #endif /* !IN_GC */ 546 547 #ifdef LOG_ENABLED 551 548 uint32_t ssr0 = pVM->selm.s.Tss.ss1; 552 549 uint32_t espr0 = pVM->selm.s.Tss.esp1;
Note:
See TracChangeset
for help on using the changeset viewer.