summaryrefslogtreecommitdiff
path: root/source/components/namespace/nsload.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2018-03-14 19:17:38 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2018-03-14 19:17:38 +0000
commite44d3d8ceb12ae786d331468fe4acf41a4af5424 (patch)
treea0c9c4018920a4690d41c0de4de76527c5f4f090 /source/components/namespace/nsload.c
parent04f27355c01cb894338c3382792c0c2b75c86239 (diff)
Notes
Diffstat (limited to 'source/components/namespace/nsload.c')
-rw-r--r--source/components/namespace/nsload.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/source/components/namespace/nsload.c b/source/components/namespace/nsload.c
index ad00d92fca8a..698d3a572326 100644
--- a/source/components/namespace/nsload.c
+++ b/source/components/namespace/nsload.c
@@ -270,23 +270,17 @@ Unlock:
"**** Completed Table Object Initialization\n"));
/*
- * Execute any module-level code that was detected during the table load
- * phase. Although illegal since ACPI 2.0, there are many machines that
- * contain this type of code. Each block of detected executable AML code
- * outside of any control method is wrapped with a temporary control
- * method object and placed on a global list. The methods on this list
- * are executed below.
+ * This case handles the legacy option that groups all module-level
+ * code blocks together and defers execution until all of the tables
+ * are loaded. Execute all of these blocks at this time.
+ * Execute any module-level code that was detected during the table
+ * load phase.
*
- * This case executes the module-level code for each table immediately
- * after the table has been loaded. This provides compatibility with
- * other ACPI implementations. Optionally, the execution can be deferred
- * until later, see AcpiInitializeObjects.
+ * Note: this option is deprecated and will be eliminated in the
+ * future. Use of this option can cause problems with AML code that
+ * depends upon in-order immediate execution of module-level code.
*/
- if (!AcpiGbl_ParseTableAsTermList && !AcpiGbl_GroupModuleLevelCode)
- {
- AcpiNsExecModuleCodeList ();
- }
-
+ AcpiNsExecModuleCodeList ();
return_ACPI_STATUS (Status);
}