From f150fc890b774326e48e24c904bfec7d9b1fe3e2 Mon Sep 17 00:00:00 2001 From: "Andrey Halyavin (halyavin)" Date: Tue, 7 Mar 2006 09:52:43 +0000 Subject: [PATCH] fixing bug with keyboard and mouse in VmWare (from diamond). git-svn-id: svn://kolibrios.org@56 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/detect/ps2mouse.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/detect/ps2mouse.inc b/kernel/trunk/detect/ps2mouse.inc index 1929b640ed..800e8f7337 100644 --- a/kernel/trunk/detect/ps2mouse.inc +++ b/kernel/trunk/detect/ps2mouse.inc @@ -1,6 +1,8 @@ MouseSearch_PS2: pusha + mov bl, 0xAD + call kb_cmd mov bl,0xa8 ; enable mouse cmd call kb_cmd @@ -18,7 +20,7 @@ MouseSearch_PS2: call kb_read ; Acknowledge call kb_read mov [ps2_mouse_detected],0 - test al,8 + test al,18h jz @f mov [ps2_mouse_detected],1 @@: @@ -61,5 +63,7 @@ MouseSearch_PS2: mov esi,boot_setmouse_type call boot_log @@: + mov bl, 0xAE + call kb_cmd popa