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
This commit is contained in:
Warner Losh 2003-05-03 17:16:40 +00:00
parent d0a7944aac
commit 0f78c17f6f

View file

@ -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;