forked from KolibriOS/kolibrios
ps2mouse: disable mouse before system shutdown
git-svn-id: svn://kolibrios.org@6241 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
6e1bd6d91d
commit
a73038cb78
@ -70,10 +70,13 @@ mouse_cmd:
|
||||
cmp ah, 1
|
||||
je .fail
|
||||
|
||||
cmp [mouse_cmd_byte], 0xF5
|
||||
je .ok
|
||||
call mouse_read
|
||||
|
||||
cmp al, 0xFA
|
||||
jne .noack
|
||||
.ok:
|
||||
clc
|
||||
ret
|
||||
.noack:
|
||||
|
@ -22,7 +22,10 @@ entry START
|
||||
proc START c, state:dword, cmdline:dword
|
||||
|
||||
cmp [state], DRV_ENTRY
|
||||
jne .nothing
|
||||
je .init
|
||||
cmp [state], DRV_EXIT
|
||||
je .fini
|
||||
jmp .nothing
|
||||
.init:
|
||||
; disable keyboard and mouse interrupts
|
||||
; keyboard IRQ handler can interfere badly otherwise
|
||||
@ -89,6 +92,10 @@ proc START c, state:dword, cmdline:dword
|
||||
.nothing:
|
||||
xor eax, eax
|
||||
ret
|
||||
.fini:
|
||||
mov al, 0xF5
|
||||
call mouse_cmd
|
||||
ret
|
||||
|
||||
.exit:
|
||||
mov bl, 0xA7 ; disable mouse interface
|
||||
|
Loading…
Reference in New Issue
Block a user