Subversion Repositories Kolibri OS

Rev

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

Rev 3493 Rev 3501
Line 69... Line 69...
69
format binary as "mnt"
69
format binary as "mnt"
Line 70... Line 70...
70
 
70
 
71
include 'macros.inc'
71
include 'macros.inc'
Line 72... Line 72...
72
include 'struct.inc'
72
include 'struct.inc'
Line 73... Line 73...
73
 
73
 
Line 74... Line 74...
74
$Revision: 3493 $
74
$Revision: 3501 $
Line 823... Line 823...
823
        call    init_display
823
        call    init_display
824
        mov     eax, [def_cursor]
824
        mov     eax, [def_cursor]
825
        mov     [SLOT_BASE+APPDATA.cursor], eax
825
        mov     [SLOT_BASE+APPDATA.cursor], eax
826
        mov     [SLOT_BASE+APPDATA.cursor+256], eax
826
        mov     [SLOT_BASE+APPDATA.cursor+256], eax
Line 827... Line 827...
827
 
827
 
Line 828... Line 828...
828
  ; READ TSC / SECOND
828
; PRINT CPU FREQUENCY
829
 
829
 
-
 
830
        mov     esi, boot_cpufreq
830
        mov     esi, boot_tsc
831
        call    boot_log
831
        call    boot_log
832
 
832
        cli
833
        cli                         ;FIXME check IF
833
        rdtsc   ;call  _rdtsc
834
        rdtsc
834
        mov     ecx, eax
835
        mov     ecx, eax
835
        mov     esi, 250            ; wait 1/4 a second
-
 
836
        call    delay_ms
836
        mov     esi, 250            ; wait 1/4 a second
-
 
837
        call    delay_ms
837
        rdtsc   ;call  _rdtsc
838
        rdtsc
838
        sti
839
 
839
        sub     eax, ecx
840
        sub     eax, ecx
840
        xor     edx, edx
841
        xor     edx, edx
841
        shld    edx, eax, 2
842
        shld    edx, eax, 2
842
        shl     eax, 2
843
        shl     eax, 2
843
        mov     dword [cpu_freq], eax
-
 
844
        mov     dword [cpu_freq+4], edx
844
        mov     dword [cpu_freq], eax
845
; PRINT CPU FREQUENCY
-
 
Line 846... Line -...
846
        mov     esi, boot_cpufreq
-
 
847
        call    boot_log
845
        mov     dword [cpu_freq+4], edx
848
 
846
        mov     ebx, eax
849
        mov     ebx, edx
847
 
850
        movzx   ecx, word [boot_y]
848
        movzx   ecx, word [boot_y]
851
        if lang eq ru
849
        if lang eq ru
852
        add     ecx, (10+19*6) shl 16 - 10         ; 'Determining amount of memory'
850
        add     ecx, (10+19*6) shl 16 - 10
853
        else if lang eq sp
851
        else if lang eq sp
854
        add     ecx, (10+25*6) shl 16 - 10         ; 'Determining amount of memory'
852
        add     ecx, (10+25*6) shl 16 - 10
-
 
853
        else
855
        else
854
        add     ecx, (10+17*6) shl 16 - 10
856
        add     ecx, (10+17*6) shl 16 - 10         ; 'Determining amount of memory'
855
        end if
857
        end if
856
 
858
        mov     edx, 0xFFFFFF
857
        mov     edx, 0xFFFFFF
859
        xor     edi, edi
858
        xor     edi, edi