disable namespace optimization on tables other than DSDT

date	2005.02.28.22.15.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 16:11:55 +00:00
parent 27ebccce52
commit 591e6cdef1

View File

@ -2,7 +2,7 @@
/******************************************************************************
*
* Module Name: asltransform - Parse tree transforms
* $Revision: 1.29 $
* $Revision: 1.30 $
*
*****************************************************************************/
@ -380,6 +380,18 @@ TrDoDefinitionBlock (
for (i = 0; i < 5; i++)
{
Next = Next->Asl.Next;
if (i == 0)
{
/*
* This is the table signature. Only the DSDT can be assumed to
* be at the root of the namespace; Therefore, namepath optimization
* can only be performed on the DSDT.
*/
if (ACPI_STRNCMP (Next->Asl.Value.String, "DSDT", 4))
{
Gbl_ReferenceOptimizationFlag = FALSE;
}
}
}
Gbl_FirstLevelInsertionNode = Next;