[ros-dev] AllocConsole bug

Magnus Olsen magnus at itkonsult-olsen.com
Tue Oct 18 20:27:59 CEST 2005


Hi Hartmut
Only computer I can think of why (drivers\input\i8042prt\i8042prt.c:562)
 Basic keyboard detection failed. It is on a compac. I have done a small
patch for i8042prt it remove keyboard self test, for if u execute standard
keyboard self test it should not found the keyboard.  And I think also
it solv u problem keyboard not found can u tested. if it works
be free to commit it.

----- Original Message ----- 
From: "Hartmut Birr" <osexpert at gmail.com>
To: "ReactOS Development List" <ros-dev at reactos.org>
Sent: den 18 October 2005 18:05
Subject: Re: [ros-dev] AllocConsole bug


> Ge van Geldorp wrote:
> > Anyone out there
> > seeing this AllocConsole bug who would be willing to test?
> >
>
> I'm get the following line if I boot my test machine without a PS/2 mouse:
>
> (drivers\input\i8042prt\i8042prt.c:562) Basic keyboard detection failed:
c00000b5
>
> - Hartmut
> _______________________________________________
> Ros-dev mailing list
> Ros-dev at reactos.org
> http://www.reactos.org/mailman/listinfo/ros-dev
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.12.2/137 - Release Date: 2005-10-16
>
>
-------------- next part --------------
Index: i8042prt.c
===================================================================
--- i8042prt.c	(revision 18528)
+++ i8042prt.c	(working copy)
@@ -512,30 +512,13 @@
 {
 	NTSTATUS Status;
 	UCHAR Value = 0;
-	ULONG Counter;
 
+
 	DevExt->MouseExists = FALSE;
 	DevExt->KeyboardExists = FALSE;
 
 	I8042Flush();
 
-	if (!I8042Write(DevExt, I8042_CTRL_PORT, KBD_SELF_TEST))
-		return STATUS_TIMEOUT;
-
-	// Wait longer?
-	Counter = 3;
-	do {
-		Status = I8042ReadDataWait(DevExt, &Value);
-	} while ((Counter--) && (STATUS_TIMEOUT == Status));
-
-	if (!NT_SUCCESS(Status))
-		return Status;
-
-	if (Value != 0x55) {
-		DPRINT1("Got %x instead of 55\n", Value);
-		return STATUS_IO_DEVICE_ERROR;
-	}
-
 	if (I8042Write(DevExt, I8042_CTRL_PORT, KBD_LINE_TEST))
 	{
 		Status = I8042ReadDataWait(DevExt, &Value);


More information about the Ros-dev mailing list