From 47cefca831bd53198fd4c517dec357c654187d00 Mon Sep 17 00:00:00 2001 From: tshiozak Date: Tue, 15 Oct 2002 20:53:37 +0000 Subject: [PATCH] fix a simple, but wicked bug in EcSpaceHandler(). this bug causes EcWrite via EcSpaceHandler to always write 0 as the data byte. --- sys/dev/acpi/acpi_ec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/acpi/acpi_ec.c b/sys/dev/acpi/acpi_ec.c index f280255eb051..0eb7739582bb 100644 --- a/sys/dev/acpi/acpi_ec.c +++ b/sys/dev/acpi/acpi_ec.c @@ -1,4 +1,4 @@ -/* $NetBSD: acpi_ec.c,v 1.7 2002/10/02 16:33:36 thorpej Exp $ */ +/* $NetBSD: acpi_ec.c,v 1.8 2002/10/15 20:53:37 tshiozak Exp $ */ /* * Copyright 2001 Wasabi Systems, Inc. @@ -172,7 +172,7 @@ *****************************************************************************/ #include -__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.7 2002/10/02 16:33:36 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: acpi_ec.c,v 1.8 2002/10/15 20:53:37 tshiozak Exp $"); #include #include @@ -545,7 +545,6 @@ EcSpaceHandler(UINT32 Function, ACPI_PHYSICAL_ADDRESS Address, UINT32 width, /* * Perform the transaction. */ - (*Value) = 0; for (i = 0; i < width; i += 8) { if (Function == ACPI_READ) EcRequest.Data = 0;