Changeset 13532 in vbox for trunk/src/VBox/VMM/PATM
- Timestamp:
- Oct 23, 2008 12:39:48 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 38381
- Location:
- trunk/src/VBox/VMM/PATM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PATM/CSAM.cpp
r13144 r13532 2405 2405 0x2F}; /* OpenBSD 4.0 after install */ 2406 2406 2407 rc = CPUMQueryGuestCtxPtr(pVM, &pCtx); 2408 AssertRC(rc); /* can't fail */ 2407 pCtx = CPUMQueryGuestCtxPtr(pVM); 2409 2408 2410 2409 for (unsigned i=0;i<RT_ELEMENTS(aOpenBsdPushCSOffset);i++) -
trunk/src/VBox/VMM/PATM/PATM.cpp
r13144 r13532 419 419 { 420 420 PCPUMCTX pCtx; 421 int rc;422 421 423 422 /* Update CPUMCTX guest context pointer. */ … … 428 427 RTAvloU32DoWithAll(&pVM->patm.s.PatchLookupTreeHC->PatchTree, true, RelocatePatches, (void *)pVM); 429 428 430 rc = CPUMQueryGuestCtxPtr(pVM, &pCtx); 431 AssertRC(rc); 429 pCtx = CPUMQueryGuestCtxPtr(pVM); 432 430 433 431 /* If we are running patch code right now, then also adjust EIP. */ … … 3993 3991 3994 3992 /* Make sure the code selector is wide open; otherwise refuse. */ 3995 CPUMQueryGuestCtxPtr(pVM, &pCtx);3993 pCtx = CPUMQueryGuestCtxPtr(pVM); 3996 3994 if (CPUMGetGuestCPL(pVM, CPUMCTX2CORE(pCtx)) == 0) 3997 3995 { … … 6183 6181 RTRCPTR retaddr; 6184 6182 PCPUMCTX pCtx; 6185 int rc; 6186 6187 rc = CPUMQueryGuestCtxPtr(pVM, &pCtx); 6188 AssertRC(rc); 6183 6184 pCtx = CPUMQueryGuestCtxPtr(pVM); 6189 6185 6190 6186 rc = PGMPhysSimpleReadGCPtr(pVM, &retaddr, pCtx->esp, sizeof(retaddr)); -
trunk/src/VBox/VMM/PATM/VMMAll/PATMAll.cpp
r12989 r13532 71 71 #ifdef PATM_EMULATE_SYSENTER 72 72 PCPUMCTX pCtx; 73 int rc;74 73 75 74 /* Check if the sysenter handler has changed. */ 76 rc = CPUMQueryGuestCtxPtr(pVM, &pCtx); 77 AssertRC(rc); 78 if ( rc == VINF_SUCCESS 79 && pCtx->SysEnter.cs != 0 75 pCtx = CPUMQueryGuestCtxPtr(pVM); 76 if ( pCtx->SysEnter.cs != 0 80 77 && pCtx->SysEnter.eip != 0 81 78 ) … … 301 298 VMMDECL(bool) PATMAreInterruptsEnabled(PVM pVM) 302 299 { 303 PCPUMCTX pCtx = 0; 304 int rc; 305 306 rc = CPUMQueryGuestCtxPtr(pVM, &pCtx); 307 AssertRC(rc); 300 PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVM); 308 301 309 302 return PATMAreInterruptsEnabledByCtxCore(pVM, CPUMCTX2CORE(pCtx)); … … 389 382 VMMDECL(int) PATMSysCall(PVM pVM, PCPUMCTXCORE pRegFrame, PDISCPUSTATE pCpu) 390 383 { 391 PCPUMCTX pCtx; 392 int rc; 393 394 rc = CPUMQueryGuestCtxPtr(pVM, &pCtx); 395 AssertRCReturn(rc, VINF_EM_RAW_RING_SWITCH); 384 PCPUMCTX pCtx = CPUMQueryGuestCtxPtr(pVM); 396 385 397 386 if (pCpu->pCurInstr->opcode == OP_SYSENTER)
Note:
See TracChangeset
for help on using the changeset viewer.