mirror of
https://github.com/acpica/acpica/
synced 2025-01-15 22:09:17 +03:00
Fix for ALIAS
date 2002.10.21.21.49.00; author rmoore1; state Exp;
This commit is contained in:
parent
24bbdd455b
commit
03864ce615
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: aslopt- Compiler optimizations
|
||||
* $Revision: 1.5 $
|
||||
* $Revision: 1.6 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -748,8 +748,20 @@ OptOptimizeNamePath (
|
||||
|
||||
if (Flags & AML_NAMED)
|
||||
{
|
||||
Op->Asl.Child->Asl.Value.String = NewPath;
|
||||
Op->Asl.Child->Asl.AmlLength = ACPI_STRLEN (NewPath);
|
||||
if (Op->Asl.AmlOpcode == AML_ALIAS_OP)
|
||||
{
|
||||
/*
|
||||
* ALIAS is the only oddball opcode, the name declaration
|
||||
* (alias name) is the second operand
|
||||
*/
|
||||
Op->Asl.Child->Asl.Next->Asl.Value.String = NewPath;
|
||||
Op->Asl.Child->Asl.Next->Asl.AmlLength = ACPI_STRLEN (NewPath);
|
||||
}
|
||||
else
|
||||
{
|
||||
Op->Asl.Child->Asl.Value.String = NewPath;
|
||||
Op->Asl.Child->Asl.AmlLength = ACPI_STRLEN (NewPath);
|
||||
}
|
||||
}
|
||||
else if (Flags & AML_CREATE)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user