forked from KolibriOS/kolibrios
fix FPU after r7124
git-svn-id: svn://kolibrios.org@7164 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
e4b1848a9e
commit
a49931c083
@ -46,20 +46,17 @@ init_fpu:
|
||||
ret
|
||||
@@:
|
||||
test eax, XCR0_SSE
|
||||
jz @f
|
||||
call init_sse
|
||||
ret
|
||||
@@:
|
||||
call init_fpu_mmx
|
||||
ret
|
||||
jnz .sse
|
||||
jmp .fpu_mmx
|
||||
.no_xsave:
|
||||
mov [xsave_area_size], 512 ; enough for FPU/MMX and SSE
|
||||
bt [cpu_caps], CAPS_SSE
|
||||
jnc @f
|
||||
jnc .fpu_mmx
|
||||
.sse:
|
||||
call init_sse
|
||||
fxsave [fpu_data]
|
||||
ret
|
||||
@@:
|
||||
.fpu_mmx:
|
||||
call init_fpu_mmx
|
||||
fnsave [fpu_data]
|
||||
ret
|
||||
|
Loading…
Reference in New Issue
Block a user