forked from KolibriOS/kolibrios
Disable xsave code until proper fix.
git-svn-id: svn://kolibrios.org@7199 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
fe0e99b67a
commit
53a4fd1aef
@ -12,8 +12,8 @@ init_fpu:
|
|||||||
clts
|
clts
|
||||||
fninit
|
fninit
|
||||||
|
|
||||||
bt [cpu_caps+(CAPS_XSAVE/32)], CAPS_XSAVE mod 32
|
bt [cpu_caps+(CAPS_XSAVE/32)*4], CAPS_XSAVE mod 32
|
||||||
jnc .no_xsave
|
jmp .no_xsave ; not ready to be jnc so far
|
||||||
|
|
||||||
mov ecx, cr4
|
mov ecx, cr4
|
||||||
or ecx, CR4_OSXSAVE
|
or ecx, CR4_OSXSAVE
|
||||||
@ -228,7 +228,7 @@ avx_save:
|
|||||||
|
|
||||||
align 4
|
align 4
|
||||||
save_context:
|
save_context:
|
||||||
bt [cpu_caps+(CAPS_OSXSAVE/32)], CAPS_OSXSAVE mod 32
|
bt [cpu_caps+(CAPS_OSXSAVE/32)*4], CAPS_OSXSAVE mod 32
|
||||||
jnc save_fpu_context
|
jnc save_fpu_context
|
||||||
xsave [eax]
|
xsave [eax]
|
||||||
ret
|
ret
|
||||||
@ -299,7 +299,7 @@ avx_restore:
|
|||||||
jne .copy
|
jne .copy
|
||||||
|
|
||||||
clts
|
clts
|
||||||
bt [cpu_caps+(CAPS_OSXSAVE/32)], CAPS_OSXSAVE mod 32
|
bt [cpu_caps+(CAPS_OSXSAVE/32)*4], CAPS_OSXSAVE mod 32
|
||||||
jnc .no_xsave
|
jnc .no_xsave
|
||||||
xrstor [esi]
|
xrstor [esi]
|
||||||
popfd
|
popfd
|
||||||
@ -349,7 +349,7 @@ except_7: ;#NM exception handler
|
|||||||
|
|
||||||
shl ebx, 8
|
shl ebx, 8
|
||||||
mov eax, [ebx+SLOT_BASE+APPDATA.fpu_state]
|
mov eax, [ebx+SLOT_BASE+APPDATA.fpu_state]
|
||||||
bt [cpu_caps+(CAPS_OSXSAVE/32)], CAPS_OSXSAVE mod 32
|
bt [cpu_caps+(CAPS_OSXSAVE/32)*4], CAPS_OSXSAVE mod 32
|
||||||
jnc .no_xsave
|
jnc .no_xsave
|
||||||
xsave [eax]
|
xsave [eax]
|
||||||
mov ebx, [CURRENT_TASK]
|
mov ebx, [CURRENT_TASK]
|
||||||
|
Loading…
Reference in New Issue
Block a user