aboutsummaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/compiler/aslmessages.c3
-rw-r--r--source/compiler/aslmessages.h1
-rw-r--r--source/compiler/aslopt.c1
-rw-r--r--source/compiler/asltransform.c10
-rw-r--r--source/include/acpixf.h2
5 files changed, 14 insertions, 3 deletions
diff --git a/source/compiler/aslmessages.c b/source/compiler/aslmessages.c
index efa58cb50cff..14e140b2f1ba 100644
--- a/source/compiler/aslmessages.c
+++ b/source/compiler/aslmessages.c
@@ -358,7 +358,8 @@ const char *AslCompilerMsgs [] =
/* ASL_MSG_OEM_TABLE_ID */ "Invalid OEM Table ID",
/* ASL_MSG_OEM_ID */ "Invalid OEM ID",
/* ASL_MSG_UNLOAD */ "Unload is not supported by all operating systems",
-/* ASL_MSG_OFFSET */ "Unnecessary/redundant use of Offset operator"
+/* ASL_MSG_OFFSET */ "Unnecessary/redundant use of Offset operator",
+/* ASL_MSG_LONG_SLEEP */ "Very long Sleep, greater than 1 second"
};
/* Table compiler */
diff --git a/source/compiler/aslmessages.h b/source/compiler/aslmessages.h
index 5030a81780da..907744a23a57 100644
--- a/source/compiler/aslmessages.h
+++ b/source/compiler/aslmessages.h
@@ -361,6 +361,7 @@ typedef enum
ASL_MSG_OEM_ID,
ASL_MSG_UNLOAD,
ASL_MSG_OFFSET,
+ ASL_MSG_LONG_SLEEP,
/* These messages are used by the Data Table compiler only */
diff --git a/source/compiler/aslopt.c b/source/compiler/aslopt.c
index 4e53a4b0ac4c..0f5ce5fd2845 100644
--- a/source/compiler/aslopt.c
+++ b/source/compiler/aslopt.c
@@ -522,7 +522,6 @@ OptBuildShortestPath (
Cleanup:
- ACPI_FREE (NewPathExternal);
return (Status);
}
diff --git a/source/compiler/asltransform.c b/source/compiler/asltransform.c
index 3249e367957c..324b0364dc9d 100644
--- a/source/compiler/asltransform.c
+++ b/source/compiler/asltransform.c
@@ -501,6 +501,16 @@ TrTransformSubtree (
AslError (ASL_WARNING, ASL_MSG_UNLOAD, Op, NULL);
break;
+ case PARSEOP_SLEEP:
+
+ /* Remark for very long sleep values */
+
+ if (Op->Asl.Child->Asl.Value.Integer > 1000)
+ {
+ AslError (ASL_REMARK, ASL_MSG_LONG_SLEEP, Op, NULL);
+ }
+ break;
+
default:
/* Nothing to do here for other opcodes */
diff --git a/source/include/acpixf.h b/source/include/acpixf.h
index ea92eb46d3c4..aaf284cb2bad 100644
--- a/source/include/acpixf.h
+++ b/source/include/acpixf.h
@@ -154,7 +154,7 @@
/* Current ACPICA subsystem version in YYYYMMDD format */
-#define ACPI_CA_VERSION 0x20180927
+#define ACPI_CA_VERSION 0x20181003
#include "acconfig.h"
#include "actypes.h"