[PATCH] acpi: fadt: allow first reserved field to be 1

Alex Hung alex.hung at canonical.com
Wed May 30 07:09:52 UTC 2018


The first reserved field was originally INT_MODEL but was depreciated in
ACPI 2.0; however, ACPI spec still allows this field to be 1 to maintain
compatibility.

Signed-off-by: Alex Hung <alex.hung at canonical.com>
---
 src/acpi/fadt/fadt.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/acpi/fadt/fadt.c b/src/acpi/fadt/fadt.c
index 93a5862..8779a51 100644
--- a/src/acpi/fadt/fadt.c
+++ b/src/acpi/fadt/fadt.c
@@ -395,6 +395,9 @@ static void acpi_table_check_fadt_reserved(fwts_framework *fw)
 {
 	if (fadt->reserved == (uint8_t)0)
 		fwts_passed(fw, "FADT first reserved field is zero.");
+	else if (fadt->reserved == (uint8_t)1)
+		fwts_passed(fw, "FADT first reserved field is one "
+			        "(compatible with ACPI 1.0).");
 	else
 		fwts_failed(fw, LOG_LEVEL_MEDIUM, "FADTReservedZero",
 			    "FADT first reserved field is not zero: 0x%02x",
-- 
2.7.4




More information about the fwts-devel mailing list