mirror of
https://github.com/acpica/acpica/
synced 2025-02-16 05:24:36 +03:00
Improved error messages for namespace lookups
date 2002.09.19.22.28.00; author rmoore1; state Exp;
This commit is contained in:
parent
aa246879f0
commit
726e94e95a
@ -2,7 +2,7 @@
|
||||
*
|
||||
* Module Name: tbxface - Public interfaces to the ACPI subsystem
|
||||
* ACPI table oriented interfaces
|
||||
* $Revision: 1.56 $
|
||||
* $Revision: 1.59 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -144,7 +144,6 @@ AcpiLoadTables (void)
|
||||
{
|
||||
ACPI_POINTER RsdpAddress;
|
||||
ACPI_STATUS Status;
|
||||
UINT32 NumberOfTables = 0;
|
||||
|
||||
|
||||
ACPI_FUNCTION_TRACE ("AcpiLoadTables");
|
||||
@ -175,7 +174,7 @@ AcpiLoadTables (void)
|
||||
|
||||
/* Get the RSDT via the RSDP */
|
||||
|
||||
Status = AcpiTbGetTableRsdt (&NumberOfTables);
|
||||
Status = AcpiTbGetTableRsdt ();
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
ACPI_REPORT_ERROR (("AcpiLoadTables: Could not load RSDT: %s\n",
|
||||
@ -183,9 +182,9 @@ AcpiLoadTables (void)
|
||||
goto ErrorExit;
|
||||
}
|
||||
|
||||
/* Now get the rest of the tables */
|
||||
/* Now get the tables needed by this subsystem (FADT, DSDT, etc.) */
|
||||
|
||||
Status = AcpiTbGetAllTables (NumberOfTables);
|
||||
Status = AcpiTbGetRequiredTables ();
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
ACPI_REPORT_ERROR (("AcpiLoadTables: Error getting required tables (DSDT/FADT/FACS): %s\n",
|
||||
@ -193,7 +192,7 @@ AcpiLoadTables (void)
|
||||
goto ErrorExit;
|
||||
}
|
||||
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_OK, "ACPI Tables successfully loaded\n"));
|
||||
ACPI_DEBUG_PRINT ((ACPI_DB_OK, "ACPI Tables successfully acquired\n"));
|
||||
|
||||
|
||||
/* Load the namespace from the tables */
|
||||
@ -252,10 +251,10 @@ AcpiLoadTable (
|
||||
|
||||
/* Copy the table to a local buffer */
|
||||
|
||||
Address.PointerType = ACPI_LOGICAL_POINTER;
|
||||
Address.PointerType = ACPI_LOGICAL_POINTER | ACPI_LOGICAL_ADDRESSING;
|
||||
Address.Pointer.Logical = TablePtr;
|
||||
|
||||
Status = AcpiTbGetTable (&Address, &TableInfo);
|
||||
Status = AcpiTbGetTableBody (&Address, TablePtr, &TableInfo);
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
return_ACPI_STATUS (Status);
|
||||
@ -266,7 +265,7 @@ AcpiLoadTable (
|
||||
Status = AcpiTbInstallTable (&TableInfo);
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
/* Free table allocated by AcpiTbGetTable */
|
||||
/* Free table allocated by AcpiTbGetTableBody */
|
||||
|
||||
AcpiTbDeleteSingleTable (&TableInfo);
|
||||
return_ACPI_STATUS (Status);
|
||||
@ -465,7 +464,7 @@ AcpiGetTable (
|
||||
{
|
||||
ACPI_TABLE_HEADER *TblPtr;
|
||||
ACPI_STATUS Status;
|
||||
UINT32 TableLength;
|
||||
ACPI_SIZE TableLength;
|
||||
|
||||
|
||||
ACPI_FUNCTION_TRACE ("AcpiGetTable");
|
||||
@ -522,7 +521,7 @@ AcpiGetTable (
|
||||
}
|
||||
else
|
||||
{
|
||||
TableLength = TblPtr->Length;
|
||||
TableLength = (ACPI_SIZE) TblPtr->Length;
|
||||
}
|
||||
|
||||
/* Validate/Allocate/Clear caller buffer */
|
||||
|
Loading…
x
Reference in New Issue
Block a user