diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2010-04-28 21:50:57 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2010-04-28 21:50:57 +0000 |
commit | 5b663f0c698a9ecf7e562f7f7f730d056e499b5f (patch) | |
tree | 8e0094680041ac8d48075e0787478ffeb5d61682 /tables/tbutils.c | |
parent | 9a8b5e6355e39ba0602a7f9484dca40f429fe6b0 (diff) | |
download | src-5b663f0c698a9ecf7e562f7f7f730d056e499b5f.tar.gz src-5b663f0c698a9ecf7e562f7f7f730d056e499b5f.zip |
Import ACPICA 20100428.vendor/acpica/20100428
Notes
Notes:
svn path=/vendor-sys/acpica/dist/; revision=207340
svn path=/vendor-sys/acpica/20100428/; revision=207341; tag=vendor/acpica/20100428
Diffstat (limited to 'tables/tbutils.c')
-rw-r--r-- | tables/tbutils.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tables/tbutils.c b/tables/tbutils.c index eb8bc43597d0..100a91d9e511 100644 --- a/tables/tbutils.c +++ b/tables/tbutils.c @@ -184,7 +184,7 @@ AcpiTbTablesLoaded ( void) { - if (AcpiGbl_RootTableList.Count >= 3) + if (AcpiGbl_RootTableList.CurrentTableCount >= 3) { return (TRUE); } @@ -765,14 +765,15 @@ AcpiTbParseRootTable ( * come from the FADT */ TableEntry = ACPI_CAST_PTR (UINT8, Table) + sizeof (ACPI_TABLE_HEADER); - AcpiGbl_RootTableList.Count = 2; + AcpiGbl_RootTableList.CurrentTableCount = 2; /* * Initialize the root table array from the RSDT/XSDT */ for (i = 0; i < TableCount; i++) { - if (AcpiGbl_RootTableList.Count >= AcpiGbl_RootTableList.Size) + if (AcpiGbl_RootTableList.CurrentTableCount >= + AcpiGbl_RootTableList.MaxTableCount) { /* There is no more room in the root table array, attempt resize */ @@ -781,18 +782,18 @@ AcpiTbParseRootTable ( { ACPI_WARNING ((AE_INFO, "Truncating %u table entries!", (unsigned) (TableCount - - (AcpiGbl_RootTableList.Count - 2)))); + (AcpiGbl_RootTableList.CurrentTableCount - 2)))); break; } } /* Get the table physical address (32-bit for RSDT, 64-bit for XSDT) */ - AcpiGbl_RootTableList.Tables[AcpiGbl_RootTableList.Count].Address = + AcpiGbl_RootTableList.Tables[AcpiGbl_RootTableList.CurrentTableCount].Address = AcpiTbGetRootTableEntry (TableEntry, TableEntrySize); TableEntry += TableEntrySize; - AcpiGbl_RootTableList.Count++; + AcpiGbl_RootTableList.CurrentTableCount++; } /* @@ -805,7 +806,7 @@ AcpiTbParseRootTable ( * Complete the initialization of the root table array by examining * the header of each table */ - for (i = 2; i < AcpiGbl_RootTableList.Count; i++) + for (i = 2; i < AcpiGbl_RootTableList.CurrentTableCount; i++) { AcpiTbInstallTable (AcpiGbl_RootTableList.Tables[i].Address, NULL, i); |