fix FPU after r7124

git-svn-id: svn://kolibrios.org@7164 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
CleverMouse 2018-02-19 14:53:31 +00:00
parent e4b1848a9e
commit a49931c083

View File

@ -46,20 +46,17 @@ init_fpu:
ret ret
@@: @@:
test eax, XCR0_SSE test eax, XCR0_SSE
jz @f jnz .sse
call init_sse jmp .fpu_mmx
ret
@@:
call init_fpu_mmx
ret
.no_xsave: .no_xsave:
mov [xsave_area_size], 512 ; enough for FPU/MMX and SSE mov [xsave_area_size], 512 ; enough for FPU/MMX and SSE
bt [cpu_caps], CAPS_SSE bt [cpu_caps], CAPS_SSE
jnc @f jnc .fpu_mmx
.sse:
call init_sse call init_sse
fxsave [fpu_data] fxsave [fpu_data]
ret ret
@@: .fpu_mmx:
call init_fpu_mmx call init_fpu_mmx
fnsave [fpu_data] fnsave [fpu_data]
ret ret