Subversion Repositories Kolibri OS

Rev

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

Rev 5012 Rev 5031
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: 5012 $
74
$Revision: 5031 $
Line 880... Line 880...
880
        rdtsc
880
        rdtsc
881
        mov     ecx, eax
881
        mov     ecx, eax
882
        mov     esi, 250            ; wait 1/4 a second
882
        mov     esi, 250            ; wait 1/4 a second
883
        call    delay_ms
883
        call    delay_ms
884
        rdtsc
884
        rdtsc
-
 
885
        sti
Line 885... Line 886...
885
 
886
 
886
        sub     eax, ecx
887
        sub     eax, ecx
887
        xor     edx, edx
888
        xor     edx, edx
888
        shld    edx, eax, 2
889
        shld    edx, eax, 2
Line 947... Line 948...
947
        stdcall map_page, tss._io_map_0, \
948
        stdcall map_page, tss._io_map_0, \
948
                [SLOT_BASE+256+APPDATA.io_map], PG_MAP
949
                [SLOT_BASE+256+APPDATA.io_map], PG_MAP
949
        stdcall map_page, tss._io_map_1, \
950
        stdcall map_page, tss._io_map_1, \
950
                [SLOT_BASE+256+APPDATA.io_map+4], PG_MAP
951
                [SLOT_BASE+256+APPDATA.io_map+4], PG_MAP
Line 951... Line -...
951
 
-
 
952
; LOAD FIRST APPLICATION
-
 
953
        cmp     byte [launcher_start], 1        ; Check if starting LAUNCHER is selected on blue screen (1 = yes)
-
 
954
        jnz     first_app_found
-
 
955
 
-
 
956
        cli
-
 
957
        mov     ebp, firstapp
-
 
958
        call    fs_execute_from_sysdir
-
 
959
        test    eax, eax
-
 
960
        jns     first_app_found
-
 
961
 
-
 
962
        mov     esi, boot_failed
-
 
963
        call    boot_log
-
 
964
 
-
 
965
        mov     eax, 0xDEADBEEF      ; otherwise halt
-
 
966
        hlt
-
 
967
 
-
 
968
first_app_found:
-
 
969
 
-
 
970
        cli
-
 
971
 
952
 
972
; SET KEYBOARD PARAMETERS
953
; SET KEYBOARD PARAMETERS
973
        mov     al, 0xf6       ; reset keyboard, scan enabled
954
        mov     al, 0xf6       ; reset keyboard, scan enabled
974
        call    kb_write_wait_ack
955
        call    kb_write_wait_ack
975
        test    ah, ah
956
        test    ah, ah
Line 1006... Line 987...
1006
 
987
 
1007
        mov     esi, boot_setmouse
988
        mov     esi, boot_setmouse
1008
        call    boot_log
989
        call    boot_log
Line -... Line 990...
-
 
990
        call    setmouse
-
 
991
 
-
 
992
; LOAD FIRST APPLICATION
-
 
993
        cmp     byte [launcher_start], 1        ; Check if starting LAUNCHER is selected on blue screen (1 = yes)
-
 
994
        jnz     first_app_found
-
 
995
 
-
 
996
        cli
-
 
997
        mov     ebp, firstapp
-
 
998
        call    fs_execute_from_sysdir
-
 
999
        test    eax, eax
-
 
1000
        jns     first_app_found
-
 
1001
 
-
 
1002
        mov     esi, boot_failed
-
 
1003
        call    boot_log
-
 
1004
 
-
 
1005
        mov     eax, 0xDEADBEEF      ; otherwise halt
-
 
1006
        hlt
-
 
1007
 
1009
        call    setmouse
1008
first_app_found:
Line 1010... Line 1009...
1010
 
1009
 
1011
; START MULTITASKING
1010
; START MULTITASKING
1012
 
1011