From aa3c2ef53796c1dd9979ec6532010123c1dfa643 Mon Sep 17 00:00:00 2001 From: imp Date: Sat, 3 May 2003 17:16:40 +0000 Subject: Fix halt -p. I've done this with an import because kochi-san reports this is fixed in a newer version of ACPICA and I don't want to take this off the vendor branch for a trivial reason. This patch was applied to NetBSD by kochi-san, who also posted the patch to acpi-jp@jp.freebsd.org. # My Dell Inspiron 8000 now powers off! Submitted by: takayoshi kochi-san kochi at netbsd dot org --- sys/contrib/dev/acpica/hwregs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/contrib/dev') diff --git a/sys/contrib/dev/acpica/hwregs.c b/sys/contrib/dev/acpica/hwregs.c index 8f3cd18..6b74e27 100644 --- a/sys/contrib/dev/acpica/hwregs.c +++ b/sys/contrib/dev/acpica/hwregs.c @@ -186,7 +186,7 @@ AcpiHwClearAcpiStatus (void) for (i = 0; i < GpeBlock->RegisterCount; i++) { Status = AcpiHwLowLevelWrite (8, 0xFF, - &GpeBlock->RegisterInfo[i].StatusAddress, (UINT32) i); + &GpeBlock->RegisterInfo[i].StatusAddress, (UINT32) 0); if (ACPI_FAILURE (Status)) { goto UnlockAndExit; -- cgit v1.1