summaryrefslogtreecommitdiff
path: root/include/acpi/acexcep.h
diff options
context:
space:
mode:
authorErik Schmauss <erik.schmauss@intel.com>2018-08-10 14:42:54 -0700
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-08-14 23:49:13 +0200
commitd46b6537f0ceed303047da918ed951f074a99288 (patch)
tree64838a08dc6b695edb7dd21a2109318623aaf253 /include/acpi/acexcep.h
parent2c20443ec221dcb76484b30933593e8ecd836bbd (diff)
downloadlwn-d46b6537f0ceed303047da918ed951f074a99288.tar.gz
lwn-d46b6537f0ceed303047da918ed951f074a99288.zip
ACPICA: AML Parser: ignore all exceptions resulting from incorrect AML during table load
Macros to classify different AML exception codes have been added in order to ignore the exceptions, Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> [ rjw: Fix damaged white space ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi/acexcep.h')
-rw-r--r--include/acpi/acexcep.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/acpi/acexcep.h b/include/acpi/acexcep.h
index 226e5aeba6c2..856c56ef0143 100644
--- a/include/acpi/acexcep.h
+++ b/include/acpi/acexcep.h
@@ -59,6 +59,12 @@ struct acpi_exception_info {
#define AE_OK (acpi_status) 0x0000
+#define ACPI_ENV_EXCEPTION(status) (status & AE_CODE_ENVIRONMENTAL)
+#define ACPI_AML_EXCEPTION(status) (status & AE_CODE_AML)
+#define ACPI_PROG_EXCEPTION(status) (status & AE_CODE_PROGRAMMER)
+#define ACPI_TABLE_EXCEPTION(status) (status & AE_CODE_ACPI_TABLES)
+#define ACPI_CNTL_EXCEPTION(status) (status & AE_CODE_CONTROL)
+
/*
* Environmental exceptions
*/