diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2018-03-14 19:17:38 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2018-03-14 19:17:38 +0000 |
| commit | e44d3d8ceb12ae786d331468fe4acf41a4af5424 (patch) | |
| tree | a0c9c4018920a4690d41c0de4de76527c5f4f090 /source/components/namespace/nsparse.c | |
| parent | 04f27355c01cb894338c3382792c0c2b75c86239 (diff) | |
Notes
Diffstat (limited to 'source/components/namespace/nsparse.c')
| -rw-r--r-- | source/components/namespace/nsparse.c | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/source/components/namespace/nsparse.c b/source/components/namespace/nsparse.c index bb24bab91a8d..8e86ee4c5de9 100644 --- a/source/components/namespace/nsparse.c +++ b/source/components/namespace/nsparse.c @@ -171,8 +171,17 @@ * * RETURN: Status * - * DESCRIPTION: Load ACPI/AML table by executing the entire table as a - * TermList. + * DESCRIPTION: Load ACPI/AML table by executing the entire table as a single + * large control method. + * + * NOTE: The point of this is to execute any module-level code in-place + * as the table is parsed. Some AML code depends on this behavior. + * + * It is a run-time option at this time, but will eventually become + * the default. + * + * Note: This causes the table to only have a single-pass parse. + * However, this is compatible with other ACPI implementations. * ******************************************************************************/ @@ -403,8 +412,19 @@ AcpiNsParseTable ( ACPI_FUNCTION_TRACE (NsParseTable); - if (AcpiGbl_ParseTableAsTermList) + if (AcpiGbl_ExecuteTablesAsMethods) { + /* + * This case executes the AML table as one large control method. + * The point of this is to execute any module-level code in-place + * as the table is parsed. Some AML code depends on this behavior. + * + * It is a run-time option at this time, but will eventually become + * the default. + * + * Note: This causes the table to only have a single-pass parse. + * However, this is compatible with other ACPI implementations. + */ ACPI_DEBUG_PRINT_RAW ((ACPI_DB_PARSE, "%s: **** Start table execution pass\n", ACPI_GET_FUNCTION_NAME)); |
