Al Stone afae4e
On big-endian machines, a test case looking for the methods _L1D and _E1D
Al Stone f0defa
Al Stone f0defa
From: Al Stone <ahs3@redhat.com>
Al Stone f0defa
Al Stone afae4e
in the same scope would fail (see tests/misc/badcode.asl:184).  The names
Al Stone afae4e
to be compared were being treated as 32-bit ints, and not strings.  Hence,
Al Stone afae4e
the characters were re-ordered incorrectly, mismatching the assumptions
Al Stone afae4e
made in the remainder of the function.
Al Stone f0defa
---
Al Stone f0defa
 source/compiler/aslanalyze.c |    4 ++--
Al Stone f0defa
 1 file changed, 2 insertions(+), 2 deletions(-)
Al Stone afae4e
Al Stone b8ecc8
Index: acpica-unix2-20160422/source/compiler/aslanalyze.c
Al Stone 7d2a7f
===================================================================
Al Stone b8ecc8
--- acpica-unix2-20160422.orig/source/compiler/aslanalyze.c
Al Stone b8ecc8
+++ acpica-unix2-20160422/source/compiler/aslanalyze.c
Al Stone b8ecc8
@@ -461,7 +461,7 @@ ApCheckForGpeNameConflict (
Al Stone afae4e
 
Al Stone afae4e
     /* Need a null-terminated string version of NameSeg */
Al Stone afae4e
 
Al Stone afae4e
-    ACPI_MOVE_32_TO_32 (Name, &Op->Asl.NameSeg);
Al Stone afae4e
+    ACPI_MOVE_NAME (Name, &Op->Asl.NameSeg);
Al Stone afae4e
     Name[ACPI_NAME_SIZE] = 0;
Al Stone afae4e
 
Al Stone afae4e
     /*
Al Stone b8ecc8
@@ -488,7 +488,7 @@ ApCheckForGpeNameConflict (
Al Stone afae4e
      * We are now sure we have an _Lxx or _Exx.
Al Stone afae4e
      * Create the target name that would cause collision (Flip E/L)
Al Stone afae4e
      */
Al Stone afae4e
-    ACPI_MOVE_32_TO_32 (Target, Name);
Al Stone afae4e
+    ACPI_MOVE_NAME (Target, Name);
Al Stone afae4e
 
Al Stone afae4e
     /* Inject opposite letter ("L" versus "E") */
Al Stone afae4e