Subversion Repositories Kolibri OS

Rev

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

Rev 8093 Rev 8111
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
 
74
$Revision: 8093 $
74
$Revision: 8111 $
Line 208... Line 208...
208
        rep stosd
208
        rep stosd
Line 209... Line 209...
209
 
209
 
210
        call    test_cpu
210
        call    test_cpu
Line 211... Line -...
211
        bts     [cpu_caps-OS_BASE], CAPS_TSC    ;force use rdtsc
-
 
212
 
211
        bts     [cpu_caps-OS_BASE], CAPS_TSC    ;force use rdtsc
213
        call    check_acpi
212
 
214
        call    init_hpet
213
        call    acpi_locate
215
        call    init_BIOS32
214
        call    init_BIOS32
216
; MEMORY MODEL
215
; MEMORY MODEL
217
        call    mem_test
216
        call    mem_test
Line 550... Line 549...
550
 
549
 
551
        dec     eax
550
        dec     eax
552
@@:
551
@@:
Line -... Line 552...
-
 
552
        mov     [clipboard_main_list], eax
-
 
553
 
553
        mov     [clipboard_main_list], eax
554
        call    check_acpi
554
 
555
 
555
        mov     eax, [hpet_base]
556
        mov     eax, [hpet_base]
556
        test    eax, eax
557
        test    eax, eax
557
        jz      @F
558
        jz      @F
558
        mov     eax, [hpet_base]
559
        mov     eax, [hpet_base]
559
        stdcall map_io_mem, [hpet_base], 1024, PG_GLOBAL+PAT_UC+PG_SWR
560
        stdcall map_io_mem, [hpet_base], 1024, PG_GLOBAL+PAT_UC+PG_SWR
560
        mov     [hpet_base], eax
561
        mov     [hpet_base], eax
-
 
562
        mov     eax, [eax+HPET_ID]
561
        mov     eax, [eax]
563
        DEBUGF  1, "K : HPET caps %x\n", eax
562
        DEBUGF  1, "K : HPET caps %x\n", eax
564
        call    init_hpet
Line 563... Line 565...
563
@@:
565
@@:
564
; SET UP OS TASK
566
; SET UP OS TASK
Line 890... Line 892...
890
 
892
 
891
        cli
893
        cli
892
        mov     ebx, [hpet_base]
894
        mov     ebx, [hpet_base]
893
        test    ebx, ebx
895
        test    ebx, ebx
894
        jz      @F
896
        jz      @F
Line 895... Line 897...
895
        mov     ebx, [ebx+0xF0]
897
        mov     ebx, [ebx+HPET_COUNTER]
896
 
898
 
897
        rdtsc
899
        rdtsc
898
        mov     ecx, 1000
900
        mov     ecx, 1000