Subversion Repositories Kolibri OS

Rev

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

Rev 7164 Rev 7165
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: 7164 $
8
$Revision: 7165 $
9
 
9
 
10
 
10
 
Line 32... Line 32...
32
 
32
 
33
        mov     eax, 0x0d
33
        mov     eax, 0x0d
34
        xor     ecx, ecx
34
        xor     ecx, ecx
35
        cpuid
35
        cpuid
-
 
36
        mov     [xsave_area_size], ebx
-
 
37
        cmp     ebx, fpu_data_size
Line 36... Line 38...
36
        mov     [xsave_area_size], ebx
38
        ja      $
37
 
39
 
38
        test    eax, XCR0_AVX512
40
        test    eax, XCR0_AVX512
-
 
41
        jz      @f
39
        jz      @f
42
        call    init_avx512
40
        call    init_avx512
43
        xsave   [fpu_data]
41
        ret
44
        ret
42
@@:
45
@@:
43
        test    eax, XCR0_AVX
46
        test    eax, XCR0_AVX
-
 
47
        jz      @f
44
        jz      @f
48
        call    init_avx
45
        call    init_avx
49
        xsave   [fpu_data]
46
        ret
50
        ret
47
@@:
51
@@:
48
        test    eax, XCR0_SSE
52
        test    eax, XCR0_SSE