diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2020-12-06 18:38:58 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2020-12-06 18:38:58 +0000 |
| commit | de96d75e34e4fde056f445fa040bda507dd6d985 (patch) | |
| tree | 87c7b7ec8c406a2ecf46be7aec5c96d704741952 /usr.sbin/acpitools | |
| parent | f8d66196d38b1f41cbb0b9ecb63077685448e8bb (diff) | |
acpidump: Do not print FACS if HW_REDUCED flag is set.
According to ACPI 6.3 spec, FACS is optional when HW_REDUCED is set. ACPICA
ignores the FACS completely when HW_REDUCED is set, so we need to follow
suit since it is not available through /dev/acpi as the table is not
installed.
Diffstat (limited to 'usr.sbin/acpitools')
| -rw-r--r-- | usr.sbin/acpitools/acpidump/acpi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/acpitools/acpidump/acpi.c b/usr.sbin/acpitools/acpidump/acpi.c index af032883adf..4efada276f8 100644 --- a/usr.sbin/acpitools/acpidump/acpi.c +++ b/usr.sbin/acpitools/acpidump/acpi.c @@ -1,4 +1,4 @@ -/* $NetBSD: acpi.c,v 1.46 2019/06/22 12:39:40 maxv Exp $ */ +/* $NetBSD: acpi.c,v 1.47 2020/12/06 18:38:58 jmcneill Exp $ */ /*- * Copyright (c) 1998 Doug Rabson @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: acpi.c,v 1.46 2019/06/22 12:39:40 maxv Exp $"); +__RCSID("$NetBSD: acpi.c,v 1.47 2020/12/06 18:38:58 jmcneill Exp $"); #include <sys/param.h> #include <sys/endian.h> @@ -836,7 +836,7 @@ acpi_handle_fadt(ACPI_TABLE_HEADER *sdp) if (acpi_select_address(fadt->Facs, fadt->XFacs) == 0) { if ((fadt->Flags & ACPI_FADT_HW_REDUCED) == 0) errx(EXIT_FAILURE, "Missing FACS and HW_REDUCED_ACPI flag not set in FADT"); - } else { + } else if ((fadt->Flags & ACPI_FADT_HW_REDUCED) == 0) { facs = (ACPI_TABLE_FACS *)acpi_map_sdt( acpi_select_address(fadt->Facs, fadt->XFacs)); if (memcmp(facs->Signature, ACPI_SIG_FACS, 4) != 0 || facs->Length < 64) |
