/kernel/trunk/core/sys32.inc |
---|
236,7 → 236,6 |
frstor [eax] |
restore_ring3_context |
iret |
.init: |
fninit ; ¬ ¥ ã¦ë ¥¬ ᪨஢ ë¥ ¨áª«î票ï |
.ready: |
693,7 → 692,16 |
cmp [fpu_owner],esi ; if user fpu last -> fpu user = 1 |
jne fpu_ok_1 |
mov [fpu_owner],1 |
mov eax, [256+PROC_BASE+0x10] |
bt [cpu_caps], CAPS_FXSR |
jnc .no_SSE |
fxrstor [eax] |
jmp fpu_ok_1 |
.no_SSE: |
fnclex |
frstor [eax] |
fpu_ok_1: |
mov [0xf400],byte 0 ; empty keyboard buffer |