summaryrefslogtreecommitdiff
path: root/source/include/acglobal.h
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2015-08-03 12:46:09 +0800
committerLv Zheng <zetalog@gmail.com>2015-08-03 12:46:09 +0800
commitc0b38b4c3982c2336ee92a2a14716107248bd941 (patch)
tree871da547204c5988da468534c5ff66d7ed2ef269 /source/include/acglobal.h
parent4ad67b2e2d20c98968992d1c8433f1e7f5075fdb (diff)
downloadacpica-c0b38b4c3982c2336ee92a2a14716107248bd941.tar.gz
Tables: Fix global table list issues by removing fixed table indexes.
The fixed table indexes leave holes in the global table list: 1. One hole can be seen when there is only 1 FACS provided by the BIOS. 2. Tow holes can be seen when it is a reduced hardware platform. The holes do not break OSPMs but have broken ACPI debugger "tables" command. Also the "fixed table indexes" mechanism may make the descriptors of the standard tables installed earlier than DSDT to be overwritten by the descriptors of the fixed tables. For example, FACP disappears from the global table list after DSDT is installed. This patch fixes all above issues by removing the "fixed table indexes" mechanism which is too complicated to be maintained in a regression safe manner. After removal, the table loader will determine the indexes of the fixed tables. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Diffstat (limited to 'source/include/acglobal.h')
-rw-r--r--source/include/acglobal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/include/acglobal.h b/source/include/acglobal.h
index 70e7e2051..e1402e61b 100644
--- a/source/include/acglobal.h
+++ b/source/include/acglobal.h
@@ -131,6 +131,9 @@ ACPI_GLOBAL (ACPI_TABLE_LIST, AcpiGbl_RootTableList);
ACPI_GLOBAL (ACPI_TABLE_HEADER *, AcpiGbl_DSDT);
ACPI_GLOBAL (ACPI_TABLE_HEADER, AcpiGbl_OriginalDsdtHeader);
+ACPI_INIT_GLOBAL (UINT32, AcpiGbl_DsdtIndex, ACPI_INVALID_TABLE_INDEX);
+ACPI_INIT_GLOBAL (UINT32, AcpiGbl_FacsIndex, ACPI_INVALID_TABLE_INDEX);
+ACPI_INIT_GLOBAL (UINT32, AcpiGbl_XFacsIndex, ACPI_INVALID_TABLE_INDEX);
#if (!ACPI_REDUCED_HARDWARE)
ACPI_GLOBAL (ACPI_TABLE_FACS *, AcpiGbl_FACS);