Subversion Repositories Kolibri OS

Rev

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

Rev 2580 Rev 2601
Line 67... Line 67...
67
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
67
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 68... Line 68...
68
 
68
 
69
include 'macros.inc'
69
include 'macros.inc'
Line 70... Line 70...
70
include 'struct.inc'
70
include 'struct.inc'
Line 71... Line 71...
71
 
71
 
Line 72... Line 72...
72
$Revision: 2580 $
72
$Revision: 2601 $
Line 330... Line 330...
330
        call    mutex_init
330
        call    mutex_init
Line 331... Line 331...
331
 
331
 
332
        mov     ecx, disk_list_mutex
332
        mov     ecx, disk_list_mutex
Line -... Line 333...
-
 
333
        call    mutex_init
-
 
334
 
-
 
335
        mov     ecx, keyboard_list_mutex
333
        call    mutex_init
336
        call    mutex_init
334
 
337
 
Line 335... Line 338...
335
        mov     ecx, unpack_mutex
338
        mov     ecx, unpack_mutex
336
        call    mutex_init
339
        call    mutex_init
Line 908... Line 911...
908
        pop     dword [CURRENT_TASK]    ; set OS task fisrt
911
        pop     dword [CURRENT_TASK]    ; set OS task fisrt
Line 909... Line 912...
909
 
912
 
910
; SET KEYBOARD PARAMETERS
913
; SET KEYBOARD PARAMETERS
911
        mov     al, 0xf6       ; reset keyboard, scan enabled
914
        mov     al, 0xf6       ; reset keyboard, scan enabled
-
 
915
        call    kb_write
-
 
916
        test    ah, ah
Line 912... Line 917...
912
        call    kb_write
917
        jnz     .no_keyboard
913
 
918
 
914
        ; wait until 8042 is ready
919
        ; wait until 8042 is ready
915
        xor     ecx, ecx
920
        xor     ecx, ecx
916
      @@:
921
      @@:
917
        in      al, 64h
922
        in      al, 64h
Line -... Line 923...
-
 
923
        and     al, 00000010b
-
 
924
        loopnz  @b
-
 
925
 
-
 
926
iglobal
-
 
927
align 4
-
 
928
ps2_keyboard_functions:
-
 
929
        dd      .end - $
-
 
930
        dd      0       ; no close
-
 
931
        dd      ps2_set_lights
918
        and     al, 00000010b
932
.end:
919
        loopnz  @b
933
endg
920
 
934
        stdcall register_keyboard, ps2_keyboard_functions, 0
921
       ; mov   al, 0xED       ; Keyboard LEDs - only for testing!
935
       ; mov   al, 0xED       ; Keyboard LEDs - only for testing!
922
       ; call  kb_write
936
       ; call  kb_write
Line 933... Line 947...
933
;        call  kb_read
947
;        call  kb_read
934
     ;// mike.dld [
948
     ;// mike.dld [
935
        call    set_lights
949
        call    set_lights
936
     ;// mike.dld ]
950
     ;// mike.dld ]
937
        stdcall attach_int_handler, 1, irq1, 0
951
        stdcall attach_int_handler, 1, irq1, 0
-
 
952
.no_keyboard:
Line 938... Line 953...
938
 
953
 
Line 939... Line 954...
939
; SET MOUSE
954
; SET MOUSE
940
 
955
 
Line 1054... Line 1069...
1054
        call    checkVga_N13
1069
        call    checkVga_N13
1055
        call    stack_handler
1070
        call    stack_handler
1056
        call    checkidle
1071
        call    checkidle
1057
        call    check_fdd_motor_status
1072
        call    check_fdd_motor_status
1058
        call    check_ATAPI_device_event
1073
        call    check_ATAPI_device_event
-
 
1074
        call    check_lights_state
1059
        call    check_timers
1075
        call    check_timers
1060
        jmp     osloop
1076
        jmp     osloop
1061
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1077
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1062
;                                                                    ;
1078
;                                                                    ;
1063
;                      MAIN OS LOOP END                              ;
1079
;                      MAIN OS LOOP END                              ;