Changeset 55054 in vbox for trunk/src/VBox/VMM/VMMSwitcher
- Timestamp:
- Mar 31, 2015 7:29:50 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99343
- Location:
- trunk/src/VBox/VMM/VMMSwitcher
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMSwitcher/AMD64andLegacy.mac
r55048 r55054 565 565 ; 566 566 ; CR4.AndMask and CR4.OrMask are set in CPUMR3Init based on the presence of 567 ; FXSAVE support on the host CPU567 ; FXSAVE and XSAVE support on the host CPU 568 568 ; 569 569 and ecx, [rdx + CPUM.CR4.AndMask] -
trunk/src/VBox/VMM/VMMSwitcher/PAEand32Bit.mac
r55048 r55054 420 420 ; 421 421 ; CR4.AndMask and CR4.OrMask are set in CPUMR3Init based on the presence of 422 ; FXSAVE support on the host CPU422 ; FXSAVE and XSAVE support on the host CPU 423 423 ; 424 424 CPUM_FROM_CPUMCPU(edx) … … 992 992 mov eax, [edx + CPUMCPU.Guest.pXStateR0] 993 993 mov ecx, [edx + CPUMCPU.Host.pXStateR0] 994 FIXUP FIX_NO_FXSAVE_JMP, 0, gth_no_fxsave - NAME(Start) ; this will insert a jmp gth_no_fxsave if fxsave isn't supported.995 994 fxsave [eax] 996 995 fxrstor [ecx] 997 jmp near gth_fpu_no998 999 gth_no_fxsave:1000 fnsave [eax]1001 mov eax, [ecx] ; control word1002 not eax ; 1 means exception ignored (6 LS bits)1003 and eax, byte 03Fh ; 6 LS bits only1004 test eax, [ecx + 4] ; status word1005 jz gth_no_exceptions_pending1006 1007 ; technically incorrect, but we certainly don't want any exceptions now!!1008 and dword [ecx + 4], ~03Fh1009 1010 gth_no_exceptions_pending:1011 frstor [ecx]1012 jmp short gth_fpu_no1013 1014 ALIGNCODE(16)1015 gth_fpu_no:1016 996 1017 997 ; Control registers.
Note:
See TracChangeset
for help on using the changeset viewer.