Changeset 61630 in vbox for trunk/src/VBox
- Timestamp:
- Jun 9, 2016 5:56:23 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 107978
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/IEMAll.cpp
r61450 r61630 3535 3535 */ 3536 3536 3537 /* Set the new CPL so that stack accesses use it. */ 3538 pIemCpu->uCpl = uNewCpl; 3539 3537 3540 /* Create the stack frame. */ 3538 3541 RTPTRUNION uStackFrame; … … 3547 3550 *uStackFrame.pu32++ = uErr; 3548 3551 uStackFrame.pu32[0] = (fFlags & IEM_XCPT_FLAGS_T_SOFT_INT) ? pCtx->eip + cbInstr : pCtx->eip; 3549 uStackFrame.pu32[1] = (pCtx->cs.Sel & ~X86_SEL_RPL) | pIemCpu->uCpl;3552 uStackFrame.pu32[1] = (pCtx->cs.Sel & ~X86_SEL_RPL) | (pCtx->ss.Sel & X86_SEL_RPL); 3550 3553 uStackFrame.pu32[2] = fEfl; 3551 3554 uStackFrame.pu32[3] = pCtx->esp; … … 3565 3568 *uStackFrame.pu16++ = uErr; 3566 3569 uStackFrame.pu16[0] = (fFlags & IEM_XCPT_FLAGS_T_SOFT_INT) ? pCtx->ip + cbInstr : pCtx->ip; 3567 uStackFrame.pu16[1] = (pCtx->cs.Sel & ~X86_SEL_RPL) | pIemCpu->uCpl;3570 uStackFrame.pu16[1] = (pCtx->cs.Sel & ~X86_SEL_RPL) | (pCtx->ss.Sel & X86_SEL_RPL); 3568 3571 uStackFrame.pu16[2] = fEfl; 3569 3572 uStackFrame.pu16[3] = pCtx->sp;
Note:
See TracChangeset
for help on using the changeset viewer.