Subversion Repositories Kolibri OS

Rev

Rev 5044 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5044 Rev 6241
Line 20... Line 20...
20
 
20
 
21
entry START
21
entry START
Line 22... Line 22...
22
proc START c, state:dword, cmdline:dword
22
proc START c, state:dword, cmdline:dword
-
 
23
 
-
 
24
          cmp [state], DRV_ENTRY
-
 
25
          je .init
23
 
26
          cmp [state], DRV_EXIT
24
          cmp [state], DRV_ENTRY
27
          je .fini
25
          jne .nothing
28
          jmp .nothing
26
  .init:
29
  .init:
27
; disable keyboard and mouse interrupts
30
; disable keyboard and mouse interrupts
28
; keyboard IRQ handler can interfere badly otherwise
31
; keyboard IRQ handler can interfere badly otherwise
Line 87... Line 90...
87
          mov  bl, 0xA7        ; disable mouse interface
90
          mov  bl, 0xA7        ; disable mouse interface
88
          call kbd_cmd
91
          call kbd_cmd
89
  .nothing:
92
  .nothing:
90
          xor  eax, eax
93
          xor  eax, eax
91
          ret
94
          ret
-
 
95
.fini:
-
 
96
          mov   al, 0xF5
-
 
97
          call mouse_cmd
-
 
98
          ret
Line 92... Line 99...
92
 
99
 
93
  .exit:
100
  .exit:
94
          mov  bl, 0xA7        ; disable mouse interface
101
          mov  bl, 0xA7        ; disable mouse interface