fix a simple, but wicked bug in EcSpaceHandler().

this bug causes EcWrite via EcSpaceHandler to always write 0 as the data byte.
This commit is contained in:
tshiozak 2002-10-15 20:53:37 +00:00
parent a9b87645e0
commit 47cefca831
1 changed files with 2 additions and 3 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/systm.h>
@ -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;