Lines Matching refs:SysEnter
80 if ( pCtx->SysEnter.cs != 0
81 && pCtx->SysEnter.eip != 0
84 if (pVM->patm.s.pfnSysEnterGC != (RTRCPTR)pCtx->SysEnter.eip)
89 Log2(("PATMRawEnter: installing sysenter patch for %RRv\n", pCtx->SysEnter.eip));
90 pVM->patm.s.pfnSysEnterPatchGC = PATMR3QueryPatchGCPtr(pVM, pCtx->SysEnter.eip);
93 rc = PATMR3InstallPatch(pVM, pCtx->SysEnter.eip, PATMFL_SYSENTER | PATMFL_CODE32);
96 pVM->patm.s.pfnSysEnterPatchGC = PATMR3QueryPatchGCPtr(pVM, pCtx->SysEnter.eip);
97 pVM->patm.s.pfnSysEnterGC = (RTRCPTR)pCtx->SysEnter.eip;
102 pVM->patm.s.pfnSysEnterGC = (RTRCPTR)pCtx->SysEnter.eip;
490 if ( pCtx->SysEnter.cs == 0
494 || pVM->patm.s.pfnSysEnterGC != (RTRCPTR)(RTRCUINTPTR)pCtx->SysEnter.eip
501 pCtx->cs.Sel = (pCtx->SysEnter.cs & ~X86_SEL_RPL) | 1;
503 pCtx->ss.Sel = pCtx->cs.Sel + 8; /* SysEnter.cs + 8 */
504 pCtx->esp = pCtx->SysEnter.esp;
517 if ( pCtx->SysEnter.cs == 0
525 pCtx->cs.Sel = ((pCtx->SysEnter.cs + 16) & ~X86_SEL_RPL) | 3;
527 pCtx->ss.Sel = pCtx->cs.Sel + 8; /* SysEnter.cs + 24 */