diff options
author | Lv Zheng <lv.zheng@intel.com> | 2017-07-10 10:17:29 +0800 |
---|---|---|
committer | Zheng <lv.zheng@intel.com> | 2017-07-10 10:17:29 +0800 |
commit | 04c28c7549e694ea85f40bcc816039e5fbb4169c (patch) | |
tree | 8e59c3563495db4e3264baea838b231bd99061d0 /source/tools/acpiexec/aetables.c | |
parent | 41e7b3575c07a1410157bce8fba7600ab0ebaf17 (diff) | |
download | acpica-04c28c7549e694ea85f40bcc816039e5fbb4169c.tar.gz |
acpiexec: Add testability of deferred table verification
This patch adds testability of deferred table verification mechanism. As
acpiexec uses dynamically allocated root table list from its very early
stage, a change to AcpiReallocateRootTable() is required to allow deferred
table verification mechanism to be triggered in such an environment. Note
that AcpiGbl_EnableTableValidation is still TRUE by default, thus:
1. Developers need to manually set AcpiGbl_EnableTableValidation to FALSE
for acpiexec to enable this test.
2. For all other OSPMs (Linux, BSDs, etc.), this commit is a no-op.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Diffstat (limited to 'source/tools/acpiexec/aetables.c')
-rw-r--r-- | source/tools/acpiexec/aetables.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/tools/acpiexec/aetables.c b/source/tools/acpiexec/aetables.c index 671b2a1d0..8d2ea56eb 100644 --- a/source/tools/acpiexec/aetables.c +++ b/source/tools/acpiexec/aetables.c @@ -598,6 +598,14 @@ AeInstallTables ( Status = AcpiInitializeTables (NULL, ACPI_MAX_INIT_TABLES, TRUE); ACPI_CHECK_OK (AcpiInitializeTables, Status); + /* + * The following code is prepared to test the deferred table + * verification mechanism. When AcpiGbl_EnableTableValidation is set + * to FALSE by default, AcpiReallocateRootTable() sets it back to TRUE + * and triggers the deferred table verification mechanism accordingly. + */ + (void) AcpiReallocateRootTable (); + if (AcpiGbl_LoadTestTables) { /* Test multiple table/UEFI support. First, get the headers */ |