From a49931c083ecfb13284359d1f02f9997b19cdf95 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Mon, 19 Feb 2018 14:53:31 +0000 Subject: [PATCH] fix FPU after r7124 git-svn-id: svn://kolibrios.org@7164 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/fpu.inc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/kernel/trunk/core/fpu.inc b/kernel/trunk/core/fpu.inc index 6c4291ca6e..a77ff73984 100644 --- a/kernel/trunk/core/fpu.inc +++ b/kernel/trunk/core/fpu.inc @@ -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