- Timestamp:
- Dec 18, 2008 1:21:48 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 41188
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r15605 r15654 3602 3602 { 3603 3603 int rc, rc2; 3604 RTHCUINTREG uFlags;3605 3604 PHWACCM_CPUINFO pCpu; 3606 3605 RTHCPHYS pPageCpuPhys; … … 3629 3628 VMXDisable(); 3630 3629 3631 uFlags = ASMIntDisableFlags();3632 3633 3630 CPUMSetHyperESP(pVM, VMMGetStackRC(pVM)); 3634 3631 CPUMSetHyperEIP(pVM, pfnHandler); … … 3642 3639 RTHCUINTREG uFlagsTest = ASMGetFlags(); 3643 3640 #endif 3644 3645 ASMSetFlags(uFlags);3646 3641 3647 3642 /* Make sure the VMX instructions don't cause #UD faults. */ -
trunk/src/VBox/VMM/VMMSwitcher/LegacyandAMD64.mac
r15598 r15654 72 72 %endif 73 73 74 ; turn off interrupts 75 pushf 76 cli 77 74 78 ; 75 79 ; Call worker. … … 80 84 call NAME(vmmR0HostToGuestAsm) 81 85 86 ; restore original flags 87 popf 88 82 89 %ifdef VBOX_WITH_STATISTICS 83 90 ; … … 132 139 sgdt [edx + CPUMCPU.Host.gdtr] 133 140 str [edx + CPUMCPU.Host.tr] 134 ; flags135 pushfd136 pop dword [edx + CPUMCPU.Host.eflags]137 141 138 142 ; control registers. … … 506 510 507 511 ; store the return code in eax 508 mov eax, [edx + CPUMCPU.u32RetCode] 509 510 push dword [edx + CPUMCPU.Host.eflags] 511 popfd 512 512 mov eax, [edx + CPUMCPU.u32RetCode] 513 513 retf 514 515 514 ENDPROC VMMGCGuestToHostAsm 516 515
Note:
See TracChangeset
for help on using the changeset viewer.