From 0f78c17f6f087ccc6ce4cd9f0e8f293f5e1bf30d Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 3 May 2003 17:16:40 +0000 Subject: [PATCH] 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(-) diff --git a/sys/contrib/dev/acpica/hwregs.c b/sys/contrib/dev/acpica/hwregs.c index 8f3cd187acf..6b74e279da5 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;