afae4e7
On big-endian machines, a test case looking for the methods _L1D and _E1D
afae4e7
in the same scope would fail (see tests/misc/badcode.asl:184).  The names
afae4e7
to be compared were being treated as 32-bit ints, and not strings.  Hence,
afae4e7
the characters were re-ordered incorrectly, mismatching the assumptions
afae4e7
made in the remainder of the function.
afae4e7
d2e6462
Index: acpica-unix2-20150930/source/compiler/aslanalyze.c
938de56
===================================================================
d2e6462
--- acpica-unix2-20150930.orig/source/compiler/aslanalyze.c
d2e6462
+++ acpica-unix2-20150930/source/compiler/aslanalyze.c
938de56
@@ -445,7 +445,7 @@ ApCheckForGpeNameConflict (
afae4e7
 
afae4e7
     /* Need a null-terminated string version of NameSeg */
afae4e7
 
afae4e7
-    ACPI_MOVE_32_TO_32 (Name, &Op->Asl.NameSeg);
afae4e7
+    ACPI_MOVE_NAME (Name, &Op->Asl.NameSeg);
afae4e7
     Name[ACPI_NAME_SIZE] = 0;
afae4e7
 
afae4e7
     /*
938de56
@@ -472,7 +472,7 @@ ApCheckForGpeNameConflict (
afae4e7
      * We are now sure we have an _Lxx or _Exx.
afae4e7
      * Create the target name that would cause collision (Flip E/L)
afae4e7
      */
afae4e7
-    ACPI_MOVE_32_TO_32 (Target, Name);
afae4e7
+    ACPI_MOVE_NAME (Target, Name);
afae4e7
 
afae4e7
     /* Inject opposite letter ("L" versus "E") */
afae4e7