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