diff options
author | 2014-01-20 00:47:21 +0000 | |
---|---|---|
committer | 2014-01-20 00:47:21 +0000 | |
commit | ff250badee2f2f376441809c6c6754e8350edc89 (patch) | |
tree | adc542fd6b9c386bff41601d93178be2fc8b7b94 /sys/dev/acpi/acpi.c | |
parent | Cast pointer to (u_int8_t *) when assigning it to a u_int8_t * (diff) | |
download | wireguard-openbsd-ff250badee2f2f376441809c6c6754e8350edc89.tar.xz wireguard-openbsd-ff250badee2f2f376441809c6c6754e8350edc89.zip |
Instead of checking sc->sc_revision <= 1 check that the
fadt->hdr_revision <= 1. This is a better check since it checks
the version of the proper descriptor. This allows the alix APU
to reboot since those boards have currently a wrong sc->sc_revision.
Committing this now so that it can be tested easier.
With and OK jsg@ also fine by derradt@
Diffstat (limited to 'sys/dev/acpi/acpi.c')
-rw-r--r-- | sys/dev/acpi/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c index 0b1914ca0e2..4ecd80374f3 100644 --- a/sys/dev/acpi/acpi.c +++ b/sys/dev/acpi/acpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpi.c,v 1.251 2013/12/24 13:23:21 kettenis Exp $ */ +/* $OpenBSD: acpi.c,v 1.252 2014/01/20 00:47:21 claudio Exp $ */ /* * Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com> * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> @@ -1564,7 +1564,7 @@ acpi_reset(void) * RESET_REG_SUP is not properly set in some implementations, * but not testing against it breaks more machines than it fixes */ - if (sc->sc_revision <= 1 || + if (fadt->hdr_revision <= 1 || !(fadt->flags & FADT_RESET_REG_SUP) || fadt->reset_reg.address == 0) return; |