summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2010-07-27 22:57:48 +0000
committerderaadt <deraadt@openbsd.org>2010-07-27 22:57:48 +0000
commit618778d1957c79c8d09bf254e7524b73f53deea5 (patch)
treee91ac8b6bcf4fc4878c7497d23192a371dff25ee
parentdo not match a 2nd EC if something horrible happens; ok marco (diff)
downloadwireguard-openbsd-618778d1957c79c8d09bf254e7524b73f53deea5.tar.xz
wireguard-openbsd-618778d1957c79c8d09bf254e7524b73f53deea5.zip
XXX annotate a block in acpi_enter_sleep_state() that is pretty worrying
-rw-r--r--sys/dev/acpi/acpi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index 6ca0ca7dd76..8ab59ebdcf9 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.192 2010/07/27 22:11:44 deraadt Exp $ */
+/* $OpenBSD: acpi.c,v 1.193 2010/07/27 22:57:48 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -1716,6 +1716,9 @@ acpi_enter_sleep_state(struct acpi_softc *sc, int state)
*/
acpi_cpu_flush(sc, state);
+ /*
+ * XXX The following sequence is probably not right.
+ */
acpi_write_pmreg(sc, ACPIREG_PM1A_CNT, 0, rega);
acpi_write_pmreg(sc, ACPIREG_PM1B_CNT, 0, regb);