Subversion Repositories Kolibri OS

Rev

Rev 7124 | Rev 7165 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7124 Rev 7164
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2017. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2017. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 7124 $
8
$Revision: 7164 $
9
 
9
 
10
 
10
 
Line 44... Line 44...
44
        jz      @f
44
        jz      @f
45
        call    init_avx
45
        call    init_avx
46
        ret
46
        ret
47
@@:
47
@@:
48
        test    eax, XCR0_SSE
48
        test    eax, XCR0_SSE
49
        jz      @f
49
        jnz     .sse
50
        call    init_sse
-
 
51
        ret
-
 
52
@@:
-
 
53
        call    init_fpu_mmx
50
        jmp     .fpu_mmx
54
        ret
-
 
55
.no_xsave:
51
.no_xsave:
56
        mov     [xsave_area_size], 512  ; enough for FPU/MMX and SSE
52
        mov     [xsave_area_size], 512  ; enough for FPU/MMX and SSE
57
        bt      [cpu_caps], CAPS_SSE
53
        bt      [cpu_caps], CAPS_SSE
58
        jnc     @f
54
        jnc     .fpu_mmx
-
 
55
.sse:
59
        call    init_sse
56
        call    init_sse
60
        fxsave  [fpu_data]
57
        fxsave  [fpu_data]
61
        ret
58
        ret
62
@@:
59
.fpu_mmx:
63
        call    init_fpu_mmx
60
        call    init_fpu_mmx
64
        fnsave  [fpu_data]
61
        fnsave  [fpu_data]
65
        ret
62
        ret
Line 66... Line 63...
66
 
63