|
|
fa2344 |
diff --git a/source/compiler/asllookup.c b/source/compiler/asllookup.c
|
|
|
fa2344 |
index fed35fd..cda5976 100644
|
|
|
fa2344 |
--- a/source/compiler/asllookup.c
|
|
|
fa2344 |
+++ b/source/compiler/asllookup.c
|
|
|
fa2344 |
@@ -122,6 +122,8 @@ LkIsObjectUsed (
|
|
|
fa2344 |
ASL_METHOD_LOCAL *MethodLocals;
|
|
|
fa2344 |
ASL_METHOD_LOCAL *MethodArgs;
|
|
|
fa2344 |
UINT32 i;
|
|
|
fa2344 |
+ ACPI_NAME_UNION NodeName;
|
|
|
fa2344 |
+ ACPI_NAME_UNION NextName;
|
|
|
fa2344 |
|
|
|
fa2344 |
|
|
|
fa2344 |
if (Node->Type == ACPI_TYPE_METHOD)
|
|
|
fa2344 |
@@ -175,7 +177,8 @@ LkIsObjectUsed (
|
|
|
fa2344 |
* We ignore the predefined methods since often, not
|
|
|
fa2344 |
* all arguments are needed or used.
|
|
|
fa2344 |
*/
|
|
|
fa2344 |
- if ((Node->Name.Ascii[0] != '_') &&
|
|
|
fa2344 |
+ ACPI_MOVE_32_TO_32(&NodeName.Ascii, Node->Name.Ascii);
|
|
|
fa2344 |
+ if ((NodeName.Ascii[0] != '_') &&
|
|
|
fa2344 |
(!(MethodArgs[i].Flags & ASL_ARG_REFERENCED)))
|
|
|
fa2344 |
{
|
|
|
fa2344 |
sprintf (MsgBuffer, "Arg%u", i);
|
|
|
fa2344 |
@@ -228,8 +231,10 @@ LkIsObjectUsed (
|
|
|
fa2344 |
* Issue a remark even if it is a reserved name (starts
|
|
|
fa2344 |
* with an underscore).
|
|
|
fa2344 |
*/
|
|
|
fa2344 |
+ ACPI_MOVE_32_TO_32(&NodeName.Ascii, Node->Name.Ascii);
|
|
|
fa2344 |
+ ACPI_MOVE_32_TO_32(&NextName.Ascii, Next->Name.Ascii);
|
|
|
fa2344 |
sprintf (MsgBuffer, "Name [%4.4s] is within a method [%4.4s]",
|
|
|
fa2344 |
- Node->Name.Ascii, Next->Name.Ascii);
|
|
|
fa2344 |
+ NodeName.Ascii, NextName.Ascii);
|
|
|
fa2344 |
AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED,
|
|
|
fa2344 |
LkGetNameOp (Node->Op), MsgBuffer);
|
|
|
fa2344 |
return (AE_OK);
|