Al Stone f0defa
Make AslLookup endian independent
Al Stone f0defa
Al Stone f0defa
From: Al Stone <ahs3@redhat.com>
Al Stone f0defa
Al Stone f0defa
Al Stone f0defa
---
Al Stone f0defa
 source/compiler/asllookup.c |    4 +++-
Al Stone f0defa
 1 file changed, 3 insertions(+), 1 deletion(-)
Al Stone f0defa
Al Stone 7d2a7f
Index: acpica-unix2-20160318/source/compiler/asllookup.c
Al Stone 7d2a7f
===================================================================
Al Stone 7d2a7f
--- acpica-unix2-20160318.orig/source/compiler/asllookup.c
Al Stone 7d2a7f
+++ acpica-unix2-20160318/source/compiler/asllookup.c
Al Stone 938de5
@@ -119,6 +119,7 @@ LkIsObjectUsed (
Al Stone ff2804
 {
Al Stone ff2804
     ACPI_NAMESPACE_NODE     *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle);
Al Stone ff2804
     ACPI_NAMESPACE_NODE     *Next;
Al Stone ff2804
+    ACPI_NAME_UNION         tmp;
Al Stone e1a23e
     ASL_METHOD_LOCAL        *MethodLocals;
Al Stone e1a23e
     ASL_METHOD_LOCAL        *MethodArgs;
Al Stone e1a23e
     UINT32                  i;
Al Stone e1a23e
@@ -227,8 +228,9 @@ LkIsObjectUsed (
Al Stone ff2804
              * Issue a remark even if it is a reserved name (starts
Al Stone ff2804
              * with an underscore).
Al Stone ff2804
              */
Al Stone ff2804
+            ACPI_MOVE_32_TO_32(&tmp.Ascii, Next->Name.Ascii);
Al Stone ff2804
             sprintf (MsgBuffer, "Name is within method [%4.4s]",
Al Stone ff2804
-                Next->Name.Ascii);
Al Stone ff2804
+                tmp.Ascii);
Al Stone ff2804
             AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED,
Al Stone ff2804
                 LkGetNameOp (Node->Op), MsgBuffer);
Al Stone ff2804
             return (AE_OK);