From 0de5289363a17c5855b954ac355d8569a48d3f09 Mon Sep 17 00:00:00 2001 From: Nikolay Sturm Date: Sun, 18 Dec 2005 15:53:01 +0000 Subject: add back comment about wrong code ok marco --- sys/dev/acpi/acpi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/acpi') diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 76c22fded96..967001e47e1 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.11 2005/12/16 19:09:31 marco Exp $ */ +/* $OpenBSD: acpi.c,v 1.12 2005/12/18 15:53:00 sturm Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert * @@ -753,6 +753,7 @@ acpi_enter_sleep_state(struct acpi_softc *sc, int state) u_int16_t flag; flag = acpi_read_pmreg(sc, ACPIREG_PM1_CNT); + /* XXX This is sick and wrong and illegal! */ acpi_write_pmreg(sc, ACPIREG_PM1_CNT, flag |= (state << 10)); acpi_write_pmreg(sc, ACPIREG_PM1_CNT, flag |= ACPI_PM1_SLP_EN); #endif -- cgit v1.2.3